S
Steven L Cooper
Guest
I have looked all over and cannot find anything that seems related to this problem. I know it is related to MFC, but it it beyond me how to fix it.
I have checked that _AFXDLL is defined, so the macros should be correct. This the MFC code that is compiled:
m_pSessionDocTemplate =
new CMultiDocTemplate(IDR_SESSIONTYPE,
RUNTIME_CLASS(CSessionDoc),
RUNTIME_CLASS(CMultiViewFrame),
// custom MDI child frame
RUNTIME_CLASS(CSessionView));
m_pSessionDocTemplate->SetServerInfo(IDR_SESSIONTYPE_SRVR_EMB,
IDR_SESSIONTYPE_SRVR_IP,
RUNTIME_CLASS(CSessionIPFrame));
These are the link errors:
dyna32.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall CSessionIPFrame::GetThisClass(void)" (?GetThisClass@CSessionIPFrame@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CDyna32App::InitInstance(void)" (?InitInstance@CDyna32App@@UAEHXZ)
dyna32.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall CSessionDoc::GetThisClass(void)" (?GetThisClass@CSessionDoc@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CDyna32App::InitInstance(void)" (?InitInstance@CDyna32App@@UAEHXZ)
dyna32.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall CMultiViewFrame::GetThisClass(void)" (?GetThisClass@CMultiViewFrame@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CDyna32App::InitInstance(void)" (?InitInstance@CDyna32App@@UAEHXZ)
dyna32.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall CSessionView::GetThisClass(void)" (?GetThisClass@CSessionView@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CDyna32App::InitInstance(void)" (?InitInstance@CDyna32App@@UAEHXZ)
Thanks,
Steve
Continue reading...