C++ and Database connectivity

This is a discussion on C++ and Database connectivity within the C++ Programming forums, part of the General Programming Boards category; I want to access MS Access database. NE ideas how to connet to the database?I am using VC\++ 6.0, console ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    38

    C++ and Database connectivity

    I want to access MS Access database. NE ideas how to connet to the database?I am using VC\++ 6.0, console application not MFC!

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    7
    I'm taking C++ in college right now, and wanted to do this for work. I asked my teacher about it, and she told me that there was no way to do it with C++, and visual basics would be a better choice to try to integrade with Access.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    38

    But ... ??

    But I have read somewhere that u can use MFC database class as a wrapper class and then can connect to the database!
    May be i am wrong!

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Thumbs up Access is ODBC compliant

    ODBC = Open DataBase Connectivity. It is the standard (or one of the standards) used to communicate with a database.

    I've never done it, but you CAN use C++ (if you have the proper library) with an ODBC database.

    There is also COM & DCOM which allow data exchange between different Windows applications.

    I don't think that Access is an SQL database... not sure.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,630
    Follow the links in this thread.

    gg

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    There ain't a thing you can do in VB that you can't do in C++. It's just harder...
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21