EDN Admin
Well-known member
<font size=1>
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: <font size=2>
m_pSessionDocTemplate = </font><font color="#0000ff" size=2>new</font><font size=2> CMultiDocTemplate(IDR_SESSIONTYPE,
RUNTIME_CLASS(CSessionDoc),
RUNTIME_CLASS(CMultiViewFrame), </font><font color="#008000" size=2>// custom MDI child frame </font><font size=2>
RUNTIME_CLASS(CSessionView));
m_pSessionDocTemplate->SetServerInfo(IDR_SESSIONTYPE_SRVR_EMB,
IDR_SESSIONTYPE_SRVR_IP,
RUNTIME_CLASS(CSessionIPFrame));
These are the link errors: </font>
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)" (<a title="mailto:?InitInstance@CDyna32App@@UAEHXZ mailto:?InitInstance@CDyna32App@@UAEHXZ ?InitInstance@CDyna32App@@UAEHXZ )
Thanks,
Steve
</font>
View the full article
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: <font size=2>
m_pSessionDocTemplate = </font><font color="#0000ff" size=2>new</font><font size=2> CMultiDocTemplate(IDR_SESSIONTYPE,
RUNTIME_CLASS(CSessionDoc),
RUNTIME_CLASS(CMultiViewFrame), </font><font color="#008000" size=2>// custom MDI child frame </font><font size=2>
RUNTIME_CLASS(CSessionView));
m_pSessionDocTemplate->SetServerInfo(IDR_SESSIONTYPE_SRVR_EMB,
IDR_SESSIONTYPE_SRVR_IP,
RUNTIME_CLASS(CSessionIPFrame));
These are the link errors: </font>
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)" (<a title="mailto:?InitInstance@CDyna32App@@UAEHXZ mailto:?InitInstance@CDyna32App@@UAEHXZ ?InitInstance@CDyna32App@@UAEHXZ )
Thanks,
Steve
</font>
View the full article