G
Guest
Hi ,
While upgrading my application from vc6 to vc7 I got followin linking errors :
__declspec(dllimport) public: class ATL::CStringT<unsigned short,class
StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > >
__thiscall CHPCmdExecFrame::GetStringParam(int,int *)"
(__imp_?GetStringParam@CHPCmdExecFrame@@QAE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@HPAH@Z)
referenced in function "int __cdecl CmdPlaySound(class CHPCmdExecFrame *,void
*,class CHPCpDlcWnd *)"
(?CmdPlaySound@@YAHPAVCHPCmdExecFrame@@PAXPAVCHPCpDlcWnd@@@Z)
I Also tried following workaround from microsoft:
******************************************************
To resolve this issue, explicitly import the template class for CStringT and
CSimpleStringT in the precompiled header (stdafx.h) file, as follows:
template class __declspec(dllimport) CStringT<TCHAR, StrTraitMFC<TCHAR,
ChTraitsCRT<TCHAR> > >;
template class __declspec(dllimport) CSimpleStringT<TCHAR>;
******************************************************
But it doesn't work . i also tried including
#include <atlstr.h>
#include <cstringt.h>
Error still persists.
Any workaroud to this problem would be a great help. The application works
fine on VC6
Thanks in advance,
Arun
While upgrading my application from vc6 to vc7 I got followin linking errors :
__declspec(dllimport) public: class ATL::CStringT<unsigned short,class
StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > >
__thiscall CHPCmdExecFrame::GetStringParam(int,int *)"
(__imp_?GetStringParam@CHPCmdExecFrame@@QAE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@HPAH@Z)
referenced in function "int __cdecl CmdPlaySound(class CHPCmdExecFrame *,void
*,class CHPCpDlcWnd *)"
(?CmdPlaySound@@YAHPAVCHPCmdExecFrame@@PAXPAVCHPCpDlcWnd@@@Z)
I Also tried following workaround from microsoft:
******************************************************
To resolve this issue, explicitly import the template class for CStringT and
CSimpleStringT in the precompiled header (stdafx.h) file, as follows:
template class __declspec(dllimport) CStringT<TCHAR, StrTraitMFC<TCHAR,
ChTraitsCRT<TCHAR> > >;
template class __declspec(dllimport) CSimpleStringT<TCHAR>;
******************************************************
But it doesn't work . i also tried including
#include <atlstr.h>
#include <cstringt.h>
Error still persists.
Any workaroud to this problem would be a great help. The application works
fine on VC6
Thanks in advance,
Arun