From: Warren Young Date: March 26 2008 12:50am Subject: Re: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con; List-Archive: http://lists.mysql.com/plusplus/7537 Message-Id: <47E99DE1.7070701@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alex Boyer wrote: > > All four variables are defined above it: > const char *db = "xxx", *server = "xx.xx.xx.xx", *user = "fakeuser", > *pass = "fakepass"; Try reverting your changes to the example and just pass the connection parameters on the command line as directed by README-examples.txt. You can do this within the IDE if that makes you happy. Right-click the project you want to run, go to Properties, then Debug, and put something like this in the Command Arguments field: -s xx.xx.xx.xx -u fakeuser -p fakepass Then run the program. Be sure to run resetdb before any of the others, with the same command line parameters. Again, README-examples.txt covers this requirement. I realize you're eager to connect to your existing database, but go through the examples first. If they work, you have to believe MySQL++ can be made to work with other databases, too. :)