I've never used CMap before and I'm having trouble getting it to work.
CMap<CString, CString &, CString, CString &> mapElementNameToSymbol;
. It causes
error C2440: 'abstract declarator' : cannot convert from 'class CString' to 'unsigned long'
. I tried to track that down. It was in D:\VC++\MFC\INCLUDE\afxtempl.h(128):
inline UINT AFXAPI HashKey(ARG_KEY key)
return ((UINT)(void*)(DWORD)key) >> 4;
Why does it need to convert to unsigned long?
Am I using the right types for my template arguments? I want to map chemical element names (which would be strings) to element symbols (which also would be strings). For example, "oxygen" to "O".