List:MySQL++« Previous MessageNext Message »
From:Eileen Li Date:February 13 2006 10:35pm
Subject:Will MySQL++ will build under MFC?
View as plain text  
Hi,
Thank you for your help in advance.
I am using VC++7.1 (.from .net under XP sp2.) to build console
application for resetDB, it runs well. I create a MFC project with
simple dialog, when click OK it try to call resetDB ( I rename original
main() to callRestDB() and use con.connect(MY_DATABASE, MY_HOST,
MY_USER, MY_PASSWORD) instead of argc, argv[], however I have the
following errors:
Linking...
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol
___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol
___argc
nafxcwd.lib(olelink.obj) : error LNK2001: unresolved external symbol
__mbctype
nafxcwd.lib(dcmeta.obj) : error LNK2001: unresolved external symbol
__mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol
__mbctype
nafxcwd.lib(apphelp.obj) : error LNK2019: unresolved external symbol
__mbctype referenced in function "void __stdcall AfxFormatStrings(class
ATL::CStringT > > &,unsigned int,char const * const *,int)"
(?AfxFormatStrings@@YGXAAV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@A
TL@@@@@ATL@@IPBQBDH@Z
<mailto:?AfxFormatStrings@@YGXAAV?$CStringT@DV?$StrTraitMFC@DV?$ChTraits
CRT@D@ATL@@@@@ATL@@IPBQBDH@Z> )
nafxcwd.lib(viewedit.obj) : error LNK2019: unresolved external symbol
__mbctype referenced in function "public: void __thiscall
CEditView::ReadFromArchive(class CArchive &,unsigned int)"
(?ReadFromArchive@CEditView@@QAEXAAVCArchive@@I@Z
<mailto:?ReadFromArchive@CEditView@@QAEXAAVCArchive@@I@Z> )
nafxcwd.lib(oledlgs1.obj) : error LNK2019: unresolved external symbol
__mbctype referenced in function "public: int __thiscall
COleInsertDialog::CreateItem(class COleClientItem *)"
(?CreateItem@COleInsertDialog@@QAEHPAVCOleClientItem@@@Z
<mailto:?CreateItem@COleInsertDialog@@QAEHPAVCOleClientItem@@@Z> )
Debug/MFC_resetDB.exe : fatal error LNK1120: 3 unresolved externals
 
Can some one explain why is this? Will MYSQL++ work with MFC?
Thank you very much.

Thread
Will MySQL++ will build under MFC?Eileen Li13 Feb
  • Re: Will MySQL++ will build under MFC?Warren Young14 Feb
RE: Will MySQL++ will build under MFC?Eileen Li14 Feb