In a counsul program I have no problems.
As soon as I try it in a MFC program I cannot compile.
I get an conflect with the Connection with a dll or lib file
I belive that I have solved the original problem, how I don't know. The error was with mysql++ requiring windows.h and it was conflicting with a MFC include.
I still am having connection exceptions. I cannot catch (BadQuery er), I get a Linker error.
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in mysql++.lib(connection.obj)
and // out the windows.h still get errors everywhere on includes! Anyone know where I can find like a example of how to do this? In a MFC Dialog Based program?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.