Hi,
I am using VS.NET 2003 with MFC7 and I have a link error:
I use a library dll built with VC60 and mfc4.2, I have the export lib and
include file for that library. The dll implements a Document class (CMyDoc).
In the program when I use RUNTIME_CLASS(CMyDoc) to call CreateObject I got a
link error unresolved external symbol:
"public: static struct CRuntimeClass * __stdcall CMyDoc::GetThisClass(void)"
(?GetThisClass@CMyDoc@@SGPAUCRuntimeClass@@XZ).
I can't call CMyDoc::_GetBaseClass() instead, because it is declared
protected.
I changed the program to use _RUNTIME_CLASS(CMyDoc) instead, and I have a
different unresolved external symbol:
"public: static struct CRuntimeClass const CMyDoc::classCMyDoc"
(?classCMyDoc@CMyDoc@@2UCRuntimeClass@@B)
I know that CMyDoc::classCMyDoc is an export in my dll.
The MFC it's getting worst and worst!