Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 8th, 2008, 6:39 PM   #1
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 43
Rep Power: 0 Logical1 is on a distinguished road
Question Working with VB6 and MySQL database

Hello guys
I have worked for several years in VB 6 for desktop application development and in an entirely different environment with PHP and MySQL.
For reasons that are too complicated to list I like to work a new project with VB 6.0 and MySQL.

1. What is your experience? Any comments, suggestions ideas, etc?
2. I have searched my usual sources and can't find much info or samples for this combination. Any suggestions for tutorials, books, etc?
3. I know nothing about .NET would that offer better options for such an experiment?
Thanks a bunch in advnce
logical1
Logical1 is offline   Reply With Quote
Old Apr 9th, 2008, 8:12 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,464
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Re: Working with VB6 and MySQL database

1.
For starters, you may want to consider migrating to VB .NET to take advantage of the .NET framework.

2.
Is one of your usual sources Google? For connecting to MySQL from VB6 look into this:
"Visual Basic 6 code for connecting to a MySQL database using the MySQL ODBC driver"
http://www.cgi-interactive-uk.com/vb...ect_mysql.html

3.
Doing this in .NET makes the entire process incredibly easy.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 9th, 2008, 8:31 AM   #3
dr.p
Programmer
 
dr.p's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3 dr.p is on a distinguished road
Re: Working with VB6 and MySQL database

Hi, Logical1!

What IR said is right on. .Net makes it waaaaaaay easier.

I'd never bothered to use MySQL in VB, before, so I figured I'd give it a shot. It was actually really cool! Here are the resources that I used. The one I think would be most useful is first -- provided you decide to use .Net. If you've never used databases in VB.Net, make sure you at least read page 3 of the first article.

VB.Net MySQL Tutorial
MySQL.com - Connector/Net Docs
MySQL.com - How to Load and Search MySQL Using VB.Net
MySQL.com - Storing Connection Strings (kind of a side topic)

Dev.MySQL.com also has articles for Connector/ODBC, if you go with VB6.
__________________
Neeley.org
dr.p is offline   Reply With Quote
Old Apr 9th, 2008, 2:02 PM   #4
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 43
Rep Power: 0 Logical1 is on a distinguished road
Thank you

Thanks a million to both of you.
__________________
^c^
Logical1 is offline   Reply With Quote
Old Apr 9th, 2008, 2:17 PM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,464
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Re: Working with VB6 and MySQL database

Glad to help... btw, welcome to the forums!
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jul 21st, 2008, 8:55 AM   #6
Steel9561
Newbie
 
Join Date: Apr 2008
Posts: 8
Rep Power: 0 Steel9561 is on a distinguished road
Re: Working with VB6 and MySQL database

Hello guys
I have worked for several years in VB 6 for desktop application development and in an entirely different environment with PHP and MySQL.
For reasons that are too complicated to list I like to work a new project with VB 6.0 and MySQL.

1. What is your experience? Any comments, suggestions ideas, etc?

humm... I am also very experienced in Visual Basic 6 desktop applications but mostly connecting to Access databases. I have also wondered how to connect to MySQL Databases with VB6 and the only thing I was able to find out is that there is an ODBC connector that you actually install on the machine that lets you connect to MySQL Databases. I was able to do it once but only for local databases. I never got to be able to connect to remote databases.

2. I have searched my usual sources and can't find much info or samples for this combination. Any suggestions for tutorials, books, etc?

I can just give you the address where you can download the ODBC connector, I think that should give you a good start:

http://dev.mysql.com/downloads/connector/odbc/5.1.html


3. I know nothing about .NET would that offer better options for such an experiment?
Thanks a bunch in advnce
logical1

I assume yes, check out this addresses:

http://www.vbmysql.com/articles/vbne...utorial-part-1
http://dev.mysql.com/tech-resources/...ng-vb-net.html
Steel9561 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC