Mysql data source name setup

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hello to all,
  I have a problem during connection to mysql through oledb provider.
I use Microsoft Visual C++ with MFC on Windows and I try to connect
to mysql with the following call:

hResult = CDataSource::OpenFromInitializationString (connectionString)
where connectionString:

Provider=MySqlProv.3.0;Data Source=prova;Integrated
Security="";Password="";User= root;Location=localhost;Extended

When the server Mysql is not available, I get a dialog box named "Mysql
data source name setup"
and I have to wait for a user key pressed to go on with the code
What I would like to do is to avoid the raising of this dialog (the
code execution should go on without the presence of the operator) and i
would like to have an error code return from the
OpenFromInitializationString function.

Thank you,

Site Timeline