MySQL Forums
Forum List  »  Connector/C++

Re: error C2259 on Visual C++ Express 2008
Posted by: Ulf Wendel
Date: April 22, 2009 09:27AM

You are not supposed to instantiate sql::Connection directly, sql::Connection is abstract. sql::mysql::MySQL_Connection is not. However, the driver's class connect() method should be used to obtain a connection object.

There are several examples in the source download package ( http://bazaar.launchpad.net/~mysql/mysql-connector-cpp/trunk/files/head%3A/examples/ ). Please grab a source download and have a look at them.

For example, the standalone one http://bazaar.launchpad.net/~mysql/mysql-connector-cpp/trunk/annotate/head%3A/examples/standalone_example.cpp should work fine as a starting point.

Ulf

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: error C2259 on Visual C++ Express 2008
2868
April 22, 2009 09:27AM


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.