hi
want to use mysql with Visual Studio NET (C++) and i want to try get a connection with MySQL I think I need to include the
Microsoft.Data.Odbc assembly. Can anyone suggest me, how
can I add that ?
currently iam getting the following error, iam sure it wont appear
.
using Microsoft.Data.Odbc;
.
.
//Method connects to MySQL Database
bool CDatabaseMySQL::ConnectToMySQL(void)
{
OdbcConnection con = new OdbcConnection("test"); //<-------- ERRROR
return false; //Connection failed
}
error C2061: syntax error : identifier 'OdbcConnection'
error C2065: 'con' : undeclared identifier
error C2065: 'OdbcConnection' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'con'
please help