|T O P I C R E V I E W
||Posted - 30 Jun 2011 : 11:37:50
I moving from VC 6.0 to VS2010 and get the followings error at link time:
1>QcGraphDraw.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const * __stdcall QCRTGraphWnd::GetThisMessageMap(void)" (?GetThisMessageMap@QCRTGraphWnd@@KGPBUAFX_MSGMAP@@XZ)
1>QcGraphView.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const * __stdcall QCPageView::GetThisMessageMap(void)" (?GetThisMessageMap@QCPageView@@KGPBUAFX_MSGMAP@@XZ)
1>QcGraphView.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall QCPageView::GetThisClass(void)" (?GetThisClass@QCPageView@@SGPAUCRuntimeClass@@XZ) referenced in function "protected: static struct CRuntimeClass * __stdcall CQcGraphView::_GetBaseClass(void)" (?_GetBaseClass@CQcGraphView@@KGPAUCRuntimeClass@@XZ)
Do you have any direction on how to solve this problem?
|1 L A T E S T R E P L I E S (Newest First)
||Posted - 30 Jun 2011 : 12:54:12
Same answer as the sticky topic: GCL 3.0 and MFC 7.0 .
What you need to do is re-compile the GCL libraries using the version of Visual Studio you plan to use. This links in the version of MFC that ships with your version of Visual Studio, rather than the ones that we ship, which links in MFC from Visual Studio 6. The wct32dr3 and wrt32dr3 DLLs do not need to be re-compiled because they have no references to MFC in them.
All installations include GCL library source. Using Visual Studio X.0, load the *.dsw projects in the QCW32\mfclib\source directory and do a Build | Batch Build | Select All | Rebuild on each. This remakes the GCL libraries and copies them to the QCW32\mfclib subdirectory.
At some point you should considering porting your software to .Net, for which we have many graphics tools. We stopped all development work on the Windows/MFC libraries you are using more than 10 years ago, and at some point they are going to stop working. We now offer only very limited support for the products