Hello,
New to mysql++. Downloaded latest version and followed instructions in
readme.vc... mysql++.dll seems to compile just fine, but when I run any
of the examples, they crash.
In the simple1 example, I took the code down to just before
mysqlpp::Connection con; and it worked... Adding that statement back in
causes the program to crash.
This doesn't work:
main(int argc, char *argv[])
{
// Get database access parameters from command line
const char* db = "test", *server = "localhost", *user = "root", *pass =
"l3tm31n";
if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {
return 1;
}
// Connect to the sample database.
mysqlpp::Connection conn(false);
}
This works
main(int argc, char *argv[])
{
// Get database access parameters from command line
const char* db = "test", *server = "localhost", *user = "root", *pass =
"l3tm31n";
if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {
return 1;
}
// Connect to the sample database.
}
Thanks,
Alex
--------------------------------------------------------
Disclaimer:
This email is confidential and may be privileged or otherwise protected by work product
immunity or other legal rules. It is intended solely for the use of the individual to
whom it is addressed. If you are not the intended recipient, be advised that you have
received this email in error and that any use, disclosure, dissemination, forwarding,
printing, saving or copying of any of its contents is strictly prohibited. If you have
received this in error please let us know by email reply, then delete this email from
your computer system. You may not take any other action in reliance on this email.
Any views or opinions presented are solely those of the author and do not necessarily
represent those of Hobby Products International, Inc.