Mysql data source name setup
am 20.11.2006 09:33:29 von LucaHello 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
Properties=""
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
execution.
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,
Luca