If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > how to assembly Microsoft.Data.Odbc for MySQL ODBC Connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-04, 10:48
Indian Indian is offline
Registered User
 
Join Date: Sep 2003
Posts: 30
how to assembly Microsoft.Data.Odbc for MySQL ODBC Connection

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

Last edited by Indian; 05-03-04 at 10:51.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On