470,641 Members | 1,736 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

Mysql data source name setup

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
0 3664

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dave | last post: by
reply views Thread by Lenz Grimmer | last post: by
reply views Thread by Mike Chirico | last post: by
reply views Thread by Bob M | last post: by
11 posts views Thread by DJJ | last post: by
10 posts views Thread by Mike | last post: by
Atli
6 posts views Thread by Atli | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.