View Single Post
Old 07-21-2004, 10:35 AM   #9 (permalink)
milena
Registered User
 
Join Date: Jul 2004
Posts: 7
milena is on a distinguished road
Thanks sde, that's what I finally found too , but i also had to add references to System.Data.dll and mscorlib.dll in my project.

Unfortunatly, Im still having trouble with MySQLDriverCS while using the following code:

Code:
MySQLDriverCS::MySQLConnection *con;
MySQLDriverCS::MySQLConnectionString *connectionString = new MySQLConnectionString(HOST, DATABASE, LOGIN, PASSWORD);//parameters values are defined at the beginning of my project
con = new MySQLConnection( connectionString->AsString);
con->Open();
con->Close();
The project compiles, but there's an exception while executing the code (when trying to open connection):

An unhandled exception of type 'System.DllNotFoundException' occurred in mysqldrivercs.dll

Additional information: Unable to load DLL(libmySQL.dll).


Then, I tried to add this dll as a reference (even if I don't know if it's what I should do), but an error occured:

AddReference: Error adding reference to the project


What am I doing wrong?
Is there any C++ code sample using MySQLDriverCS?

Thanks again!
Milena
milena is offline   Reply With Quote