المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Vc++6.0. ADO. When I link in RELEASE mode I get Unresolved External error on ADO.



C++ Programming
03-31-2009, 07:40 PM
Hello. I have an application in VC++6.0 with MFC. I use ADO for Read/Write on file *.mdb.
When I link in DEBUG mode is OK.
When I link in RELEASE mode I get this error.
Which *.lib I must adding in link parametr? Or I must adding line code in my code source?

Thanks


error LNK2001: unresolved external symbol __imp__CoUninitialize@0
error LNK2001: unresolved external symbol __imp__CoInitialize@4
error LNK2001: unresolved external symbol "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z)

error LNK2001: unresolved external symbol "unsigned short * __stdcall _com_util::ConvertStringToBSTR(char const *)" (ConvertStringToBSTR@_com_util@@YGPAGPBD@Z)

error LNK2001: unresolved external symbol "char * __stdcall _com_util::ConvertBSTRToString(unsigned short *)" (?ConvertBSTRToString@_com_util@@YGPADPAG@Z)

error LNK2001: unresolved external symbol "void __stdcall _com_issue_errorex(long,struct IUnknown *,struct _GUID const &amphttp://www.barakasoft.com/script/Forums/Images/smiley_wink.gif" (?_com_issue_errorex@@YGXJPAUIUnknown@@ABU_GUID@@@Z)

error LNK2001: unresolved external symbol __imp__CLSIDFromProgID@8
error LNK2001: unresolved external symbol __imp__CLSIDFromString@8
error LNK2001: unresolved external symbol __imp__OleRun@4
error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
fatal error LNK1120: 10 unresolved externals
Error executing link.exe.