Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2008, 08:51 PM   PM User | #1
NeoMoon
New Coder

 
Join Date: Aug 2007
Posts: 83
Thanks: 8
Thanked 0 Times in 0 Posts
NeoMoon is an unknown quantity at this point
MySQL++

Okay, so I'm still kind of new to the C++ language, but I like to learn as I go. With that, I am trying to learn about how to add new libraries to use in my programs.

I have been using Dev++ for most of my projects, and I have absolutely no idea how to add the MySQL++ library for use.

I do have Visual C++ 2008 downloaded, and I can use that if need.

My real help needed is how to implement the library, but if you could also tell me a few basic commands of how to use MySQL++ that would be great! Maybe how to connect, INSERT INTO, SELECT * FROM, etc.

Thanks in advance,
Zach

P.S.: Just a side question, but how do I make it so that FOLDERS can be created? I know that ofstream can create files if they do not already exist, but I do not know how to make it so that directories/folders are created in the same way.

For example, if I wanted a file to be saved to .\Example\example.txt and it does not exist, I would like the Example folder to be created with the example.txt.

Sorry if any of that is confusing, just tell me and I will try to explain it better.

Last edited by NeoMoon; 05-23-2008 at 08:58 PM..
NeoMoon is offline   Reply With Quote
Old 05-24-2008, 06:31 PM   PM User | #2
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
Ok after you downloaded MySQL++ you will need to compile it before you can use it. Have you done that yet or is that where you are stuck?
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 05-27-2008, 08:40 PM   PM User | #3
NeoMoon
New Coder

 
Join Date: Aug 2007
Posts: 83
Thanks: 8
Thanked 0 Times in 0 Posts
NeoMoon is an unknown quantity at this point
Quote:
Originally Posted by oracleguy View Post
Ok after you downloaded MySQL++ you will need to compile it before you can use it. Have you done that yet or is that where you are stuck?
That's one of the things I'm stuck on... So I guess I better try doing that first.

What do I do?

Thanks,
Zach

Also, is it possible anyone who knows how to get MySQL++ set up could let me contact them via MSN? I believe this would be much easier...
NeoMoon is offline   Reply With Quote
Old 05-29-2008, 12:22 AM   PM User | #4
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
You can either install the GNU tools for windows (gcc, g++ and make) and compile it. It should have a configure script or a makefile. Or if you have access to Visual Studio (not the express version) you can open up the solution in that and compile it.

The express version might not work because I don't think it allows you to open solutions with more than one project. And I believe mysql++ is broken up into multiple projects.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 06-04-2008, 12:23 AM   PM User | #5
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
As luck should have it, I had to rebuild MySQL++ from source today. I just had to install the MySQL developer files and then open it in Visual Studio and it compiled. You can install just the dev files if you download MySQL and then do a custom install.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 04:03 AM.


Advertisement
Log in to turn off these ads.