Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//=========================================================
// TITLE: Missing API
// for WinNT, MSVC 6.0, MFC 6.00
// Copyright (C) Matrix Baltic Software
// Vilnius, Lithuania
//
// AUTHOR: Audrius Vasiliauskas
//
// NOTES: Added special hashkey for string maps
//
// I needed CMap to support the mapping of CString to int and I found this
// on [URL unfurl="true"]www.codeguru.com[/URL] Seems to work :-)
// MGS
//
//=========================================================
#ifndef __MISSING_API_H__
#define __MISSING_API_H__
#if _MSC_VER < 0x0600
#pragma warning(disable : 4786) //identifier was truncated to '255' characters in the debug information
#endif
#ifndef __AFXTEMPL_H__
#include <afxtempl.h>
#endif
////////////////////////////////////////////////////////////////////////////
//
// Special Hashkey for String Maps
//
template<>
inline UINT AFXAPI HashKey<CString> (CString strKey)
{
LPCTSTR key = strKey;
UINT nHash = 0;
while (*key)
{
nHash = (nHash<<5) + nHash + *key++;
}
return nHash;
}
template<>
inline UINT AFXAPI HashKey<CString&> (CString& strKey)
{
LPCTSTR key = strKey;
UINT nHash = 0;
while (*key)
{
nHash = (nHash<<5) + nHash + *key++;
}
return nHash;
}
#endif