Click here to Skip to main content
15,749,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to connect the ADO Connection using ODBC with C++ in Microsoft Visual C++ 6.0?
Updated 4-Sep-12 6:13am

1 solution

The idea is to find the proper connection string. Googling a bit may help.
I found a few here:[^]
The question is: connect to what? Excel? MS SQL? Access?
MS SQL has a native provider for ADO, you don't need ODBC for that one.
If you want to connect to FOXPRO, look here:[^]
In general, the site[^] has lot of examples (some of them are .NET oriented).

Another page you should read: How Do I Use the Connection Object in ADO?[^]

Hope this helps,
Share this answer
Member 9404971 5-Sep-12 0:40am    
Thanx Pablo.. I want to connect with mysql. And one more think is i want to connect with DSN and without DSN

Pablo Aliskevicius 5-Sep-12 1:52am    
With DSN -> use the examples in the first link
Without DSN ->
Good luck,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900