Errors when compiling a VC6 project in VC2005
try to compile a project built using VC++6 in VC++ 2005 and got
following errors when trying to build the project after clearing out
all the other errors in *.CPP file:
error C2248: 'CObject::CObject': cannot access private member
declared
in class 'CObject' file c:\programmi\microsoft visual
studio
8\vc\atlmfc\include
\afx.h(553) : see declaration of 'CObject::CObject'
c:\programmi\microsoft visual studio 8\vc\atlmfc\include
\afx.h(524) : see declaration of 'CObject'
This diagnostic occurred in the compiler generated function
'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CMap(const
CMap<KEY,ARG_KEY,VALUE,ARG_VALUE> &)'
with
[
KEY=_HTREEITEM,
ARG_KEY=_HTREEITEM,
VALUE=int,
ARG_VALUE=int &
]
where _HTREEITEM is
#include <commctrl.h>
extern "C" struct _TREEITEM{};
typedef struct __TREEITEM :public _TREEITEM
{
public:
long vuoto;//non serve a nulla
private:
public:
__TREEITEM (){vuoto=0;}
virtual ~__TREEITEM (){vuoto=0;}
public: __TREEITEM (const __TREEITEM& c){vuoto=c.vuoto;}
}_STREEITEM,*_HTREEITEM;
but the only CMap is
typedef CMap<DWORD , DWORD , _HTREEITEM, _HTREEITEM&> CPHTIMap;
look this error:
This diagnostic occurred in the compiler generated function
'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CMap(const
CMap<KEY,ARG_KEY,VALUE,ARG_VALUE> &)'
with
[
KEY=_HTREEITEM,
ARG_KEY=_HTREEITEM,
VALUE=int,
ARG_VALUE=int &
]
why the diagnostician has reversed the classes?
now can I disable the diagnostician?
ciao... fabio