Connecting Mysql through Visual C++
I am new to C++ development. I am having a tough time understanding how to connect Mysql Database using visual c++ windows forms application in visual studio 2008.
I tried with oledbconnection,but unable to connect to database.
Can anyone offer some step by step advice to get me moving
Thanks in advance...
Re: Connecting Mysql through Visual C++
If you search the Visual C++ forum for the following you will find about 50+ threads on this subject...while most of the results are directed to SQL Server most of the syntax for connecting/talking to the DB is uniform across ADO, ODBC, OLEDB...
"connect Mysql Database using visual c++"
1 Attachment(s)
Re: Connecting Mysql through Visual C++
Hi Vanaj,
Thanks for your reply..
If i search for that "connect Mysql Database using visual c++" most of the solutions are showing for console applications. But i need to connect to Mysql using windows forms application..
I tried using the code given in attachment vc++.txt:
when i run this code in a windows forms project i am getting nothing in DataGridview in my form.Even no errors are showing....Is there any error in OledbConnection?
Re: Connecting Mysql through Visual C++
"a windows forms project" does not belong to Visual C++ Programming.
Instead it is something like managed C++/CLI programming. So try to ask on the appropriate forum!