I
Ian Harding
I am investigating the upgrade of a VC++ 6 project to build in VS 2005.
There is a compiler error in one of the MFC files - afxcomctl32.inl.
The message is: error C2065: 'afxComCtlWrapper' : undeclared identifier.
The odd thing is that if I hover over afxComCtlWrapper in the source
code, the intellisense shows that it is declared and right-click "Go to
Declaration" takes me to line 25 of afxwin.h which contains
#define afxComCtlWrapper
static_cast<CComCtlWrapper*>(AfxGetModuleState()->m_pDllIsolationWrappers[_AFX_COMCTL32_ISOLATION_WRAPPER_INDEX])
I'm confused. How can the IDE find the declaration but suffer amnesia
when it comes to build the project?
My best guess is that a project setting or something in one of our
header files somewhere is somehow undefining the symbol. Some of the
source was written over 10 years ago and uses a mixture of MFC, ATL, STL
contributed by a lot of different people so it wouldn't be the first
time we've found something strange which might have made sense at the
time but caused problems down the line.
I can't find anything useful on Google groups or web search, can anyone
offer any suggestions as to what to try next?
Thanks,
Ian
There is a compiler error in one of the MFC files - afxcomctl32.inl.
The message is: error C2065: 'afxComCtlWrapper' : undeclared identifier.
The odd thing is that if I hover over afxComCtlWrapper in the source
code, the intellisense shows that it is declared and right-click "Go to
Declaration" takes me to line 25 of afxwin.h which contains
#define afxComCtlWrapper
static_cast<CComCtlWrapper*>(AfxGetModuleState()->m_pDllIsolationWrappers[_AFX_COMCTL32_ISOLATION_WRAPPER_INDEX])
I'm confused. How can the IDE find the declaration but suffer amnesia
when it comes to build the project?
My best guess is that a project setting or something in one of our
header files somewhere is somehow undefining the symbol. Some of the
source was written over 10 years ago and uses a mixture of MFC, ATL, STL
contributed by a lot of different people so it wouldn't be the first
time we've found something strange which might have made sense at the
time but caused problems down the line.
I can't find anything useful on Google groups or web search, can anyone
offer any suggestions as to what to try next?
Thanks,
Ian