We are migrating from VC++ 6 to VS 2005.
I am getting the following errors which i could not resolve
HTML Code:
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(168) : error C2440: 'type cast' : cannot convert from 'CString' to 'DWORD_PTR'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(1547) : see reference to function template instantiation 'UINT HashKey<ARG_KEY>(ARG_KEY)' being compiled
with
[
ARG_KEY=CString
]
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY,UINT &,UINT &) const'
with
[
KEY=CString,
ARG_KEY=CString,
VALUE=int,
ARG_VALUE=int &
]
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'int &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
with
[
KEY=CString,
ARG_KEY=CString,
VALUE=int,
ARG_VALUE=int &
]
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_VALUE)'
with
[
KEY=CString,
ARG_KEY=CString,
VALUE=int,
ARG_VALUE=int &
]
D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
with
[
KEY=CString,
ARG_KEY=CString,
VALUE=int,
ARG_VALUE=int &
]
d:\codestore\raghud_view_ma2\material_allocator\src\se_source\macro\MacroAction.h(14) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
with
[
KEY=CString,
ARG_KEY=CString,
VALUE=int,
ARG_VALUE=int &
]