Communicating with MySQL using VB or C++

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Cronikeys
Forum Commoner
Posts: 35
Joined: Sun Jan 16, 2005 9:14 am

Communicating with MySQL using VB or C++

Post by Cronikeys »

Is it possible? I am working on a PHP database manager for a company, and I though it would be neat if they could also do everyhting using a VB or C++ proggy I make, however I don' tknow how to connect with MySQL database's using either... any thoughts?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

last I read, MySQL made the client available under C..
Cronikeys
Forum Commoner
Posts: 35
Joined: Sun Jan 16, 2005 9:14 am

Post by Cronikeys »

Well I am talking about like me making a GUI using C++ or VB (I have visual studio :\) for the company to use to add/edit/delete "projects" from an external database.
wyred
Forum Commoner
Posts: 86
Joined: Mon Dec 20, 2004 1:59 am
Location: Singapore

Post by wyred »

Yes, it's possible. And there are APIs released for C++. Just check the downloads section at MySQL's website.
User avatar
SystemWisdom
Forum Commoner
Posts: 69
Joined: Sat Mar 26, 2005 5:54 pm
Location: A Canadian South of the 49th Parallel

Post by SystemWisdom »

Well, I wrote a small app to test exactly that one day (not too long ago) and I downloaded the MySQL ODBC Driver v3.51 for Win32 to test against..

I have added a link to my small program which demonstrates alot of stuff you can do.. I was gonna add more features to it, but it was mainly to test the connection between VB and MySQL, and it did just that!

It worked well for me, hopefully it works for you!

VB-MySQL Connection

It was written in VB 6.0 with Visual Studio..

Also, plz let me know if and when you DL the file, I dont want to leave it on my server forever sucking bandwidth (even though it is tiny)!! Thx!
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

VB tutorials are found here http://www.vbmysql.com/articles

Protecting MySQL Sessions With SSH Port Forwarding (Part 1 and 2) are really good.

They also got a nice forum which helps a lot.

Also they describe how to install the MySQL ODBC Driver v3.51 which is a bit tricky.
Post Reply