F
flyingxu
Hi,
I run into a cstring related link problem in VC7.
My solution has 3 projects, one MFC exe, two MFC extersion DLL.
the two MFC extersion DLL export functions which use CString as
parameters.
Everything is fine in VC6.
Now I want to upgrade the solution to VC7, but I got lots of link error
like this,
/*
WinGPC5.obj : error LNK2019: unresolved external symbol "public: static
void __cdecl CHelp::SetHelpPath(class ATL::CStringT<unsigned
short,class StrTraitMFC<unsigned short,class ATL::ChTraitsCRT<unsigned
short> > > const &)"
(?SetHelpPath@CHelp@@SAXABV?$CStringT@GV?$StrTraitMFC@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@@Z)
referenced in function "public: virtual int __thiscall
CWinGPC5App::InitInstance(void)" (?InitInstance@CWinGPC5App@@UAEHXZ)
LadderFrame.obj : error LNK2001: unresolved external symbol "public:
virtual class ATL::CStringT<unsigned short,class StrTraitMFC<unsigned
short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall
CBCGPMDIChildWnd::GetFrameText(void)const "
(?GetFrameText@CBCGPMDIChildWnd@@UBE?AV?$CStringT@GV?$StrTraitMFC@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@XZ)
*/
Some exported function which use CString as parameter can't be found.
If I change the parameter from CString to int for testing, it's ok.
I searched on web and find Q309801 by MS, but it doesn't help(it's for
CString derived class, not exported functions with CString parameters.)
Maybe I didn't fully follow its steps.
On the web, there's someone esle has the same problem as I do:
http://groups-beta.google.com/group...ad/794162cecea3b89e/397ad5a634581653?hl=en-us
Has MS be awared of this?
I run into a cstring related link problem in VC7.
My solution has 3 projects, one MFC exe, two MFC extersion DLL.
the two MFC extersion DLL export functions which use CString as
parameters.
Everything is fine in VC6.
Now I want to upgrade the solution to VC7, but I got lots of link error
like this,
/*
WinGPC5.obj : error LNK2019: unresolved external symbol "public: static
void __cdecl CHelp::SetHelpPath(class ATL::CStringT<unsigned
short,class StrTraitMFC<unsigned short,class ATL::ChTraitsCRT<unsigned
short> > > const &)"
(?SetHelpPath@CHelp@@SAXABV?$CStringT@GV?$StrTraitMFC@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@@Z)
referenced in function "public: virtual int __thiscall
CWinGPC5App::InitInstance(void)" (?InitInstance@CWinGPC5App@@UAEHXZ)
LadderFrame.obj : error LNK2001: unresolved external symbol "public:
virtual class ATL::CStringT<unsigned short,class StrTraitMFC<unsigned
short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall
CBCGPMDIChildWnd::GetFrameText(void)const "
(?GetFrameText@CBCGPMDIChildWnd@@UBE?AV?$CStringT@GV?$StrTraitMFC@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@XZ)
*/
Some exported function which use CString as parameter can't be found.
If I change the parameter from CString to int for testing, it's ok.
I searched on web and find Q309801 by MS, but it doesn't help(it's for
CString derived class, not exported functions with CString parameters.)
Maybe I didn't fully follow its steps.
On the web, there's someone esle has the same problem as I do:
http://groups-beta.google.com/group...ad/794162cecea3b89e/397ad5a634581653?hl=en-us
Has MS be awared of this?