Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: MySQL++

  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    83
    Thanks
    8
    Thanked 0 Times in 0 Posts

    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 09:58 PM.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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

  • #3
    New Coder
    Join Date
    Aug 2007
    Posts
    83
    Thanks
    8
    Thanked 0 Times in 0 Posts
    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...

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •