MySQL Forums
Forum List  »  Connector/C++

Re: Trying to work C++ Connector x64 with Visual Studio 2010
Posted by: Christopher Rohlfs
Date: June 01, 2012 12:00PM

Apparently, my problem is that the pointers are getting garbled. If I type:

string host = "tcp://127.0.0.1:3306";
string user = "root";
string password = "mypassword";
con = driver->connect(host, user, password);

in place of the previous command of

con = driver->connect("tcp://127.0.0.1:3306", "root", "mypassword");

my program thinks I've asked it to connect to a server with a bizarre combination of characters. This interpretation is consistent with another reason for "access violation," which is a known incompatibility between Debug and Release in C++ Connector, due to different pointer sizes.

http://bugs.mysql.com/bug.php?id=44272

I'm still working on how to solve whatever problem is arising in pointer sizes. Any possibilities?

Thanks,
Chris

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trying to work C++ Connector x64 with Visual Studio 2010
2011
June 01, 2012 12:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.