By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,251 Members | 2,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,251 IT Pros & Developers. It's quick & easy.

Mysql data source name setup

P: n/a
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
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

Nov 20 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.