Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2003

    Unanswered: how to assembly Microsoft.Data.Odbc for MySQL ODBC Connection


    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts