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::SetHelpP ath(class ATL::CStringT<u nsigned
short,class StrTraitMFC<uns igned short,class ATL::ChTraitsCR T<unsigned
short const &)"
(?SetHelpPath@C Help@@SAXABV?$C StringT@GV?$Str TraitMFC@GV?$Ch TraitsCRT@G@ATL @@@@@ATL@@@Z)
referenced in function "public: virtual int __thiscall
CWinGPC5App::In itInstance(void )" (?InitInstance@ CWinGPC5App@@UA EHXZ)
LadderFrame.obj : error LNK2001: unresolved external symbol "public:
virtual class ATL::CStringT<u nsigned short,class StrTraitMFC<uns igned
short,class ATL::ChTraitsCR T<unsigned short __thiscall
CBCGPMDIChildWn d::GetFrameText (void)const "
(?GetFrameText@ CBCGPMDIChildWn d@@UBE?AV?$CStr ingT@GV?$StrTra itMFC@GV?$ChTra itsCRT@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/...81653?hl=en-us
Has MS be awared of this?