今天用VS2008引用之前VC6編譯的lib時報錯,說無法解決外部鏈接:
“
Error
99
error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CXmlData::GetData(int,class ATL::CStringT > >,class ATL::CStringT > > &)" (__imp_?GetData@CXmlData@@QAEHHV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@AAV23@@Z) referenced in function "public: bool __thiscall ComponentData::InitData(void)" (?InitData@ComponentData@@QAE_NXZ)
Error
101
fatal error LNK1120: 3 unresolved externals
”
百度了一下,大概的意思是VS2008與VC6對CString的處理方式不一樣,導致了接口不能使用之類。所以,以後不要用CString的參數寫接口,以免開發平台的遷移出現問題。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24494482/viewspace-673769/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24494482/viewspace-673769/