14 messages in com.mysql.lists.plusplusRe: Problems with Visual C++
FromSent OnAttachments
Michael Nye23 Mar 2007 09:53 
Warren Young23 Mar 2007 11:38 
Michael Nye23 Mar 2007 17:41 
gary clark24 Mar 2007 06:08 
Michael Nye25 Mar 2007 01:15 
Jim Wallace25 Mar 2007 06:52 
Michael Nye25 Mar 2007 18:00 
Jim Wallace25 Mar 2007 18:27 
Michael Nye25 Mar 2007 21:23 
Michael Nye28 Mar 2007 00:39 
Andre Sodermans28 Mar 2007 21:14 
Warren Young29 Mar 2007 04:59 
Matt Dargavel29 Mar 2007 05:09 
Warren Young29 Mar 2007 08:11 
Subject:Re: Problems with Visual C++
From:Michael Nye (mich@jcu.edu.au)
Date:03/28/2007 12:39:57 AM
List:com.mysql.lists.plusplus

Hi all,

Just letting you know I have *finally* got my problem fixed. Inside the preprocessor, i had MAKE_MYSQLPP_DLL declared (I must of read this somewhere) which apparantly was building an incorrect mysqlpp.dll. I removed this from the preprocessor, and copied the mysqlpp.dll file from the mysql++/debug (i think it was /debug) directory into my project directory, and it solved the link errors. How I found this was when I was trialing and erroring different settings I removed the MAKE_MYSQLPP_DLL line and it compiled/linked fine but couldn't find the mysqlpp.dll, which made me think about how sample1 was doing it, and it just had the mysqlpp.dll in the project directory. In summary for people with troubles with this I think the major things were:

- Make sure sample1 from mysql++ works - Copy the majority of the linker / C/C++ settings from sample1 into a windows forms project (but keep stuff like Systems as Windows) - Run install.bat in command prompt and copy the folders from C:\mysq++\ into your install directory - Follow README.vc and don't worry about the managed extensions bit at the start, it doesn't seem to be an option anymore. Ensure you have the linker libraries correct (check the folders your linking to and see whether the .lib files or whatever you are using are actually in there). Do the same for the include file directories and in sample1 where it just says "debug" link to your mysql++ install directory \debug. - Copy mysqlpp.dll from your mysql++\debug directory into your project folder

I think that's all that I ended up changing, I don't know which steps could be skipped etc. because once it worked I just wanted to get started and not play around seeing exactly how it worked. Just alot of trial and error is needed, alot of the errors you can search for the codes on google and see similar problems and try to relate it to mysql++.

Anyway thanks for all the help,

Michael.