DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Trin Guest

    How to connect Database(MS Access) using C++



    How to connect Database(MS Access) using C++ .
    I am having a txt file with 3 fields and a table in MS-Access database.
    I would like to update these 3 fields into that table using C++ program.
    Could you pls help me.

    Thanks in Advance,
    Trin.

  2. #2
    GJ Guest

    Re: How to connect Database(MS Access) using C++


    go to MS home page, and download MDAC

    Its the ADO sdk that you can use with VC++

    "Trin" <trinadhm@yahoo.com> wrote:
    >
    >
    >How to connect Database(MS Access) using C++ .
    >I am having a txt file with 3 fields and a table in MS-Access database.
    >I would like to update these 3 fields into that table using C++ program.
    >Could you pls help me.
    >
    >Thanks in Advance,
    >Trin.



  3. #3
    zala Vijay Guest

    Re: How to connect Database(MS Access) using C++


    Hi Trin
    Here is a Please tell me that what verson of c++ you are using? if you are
    using visual c++ then send me e-mail so that I can send you sample project.There
    are so many ways to connect too. Using ODBC, JET Database Engine, ADO.

    Regards
    Zala Vijay



    "Trin" <trinadhm@yahoo.com> wrote:
    >
    >
    >How to connect Database(MS Access) using C++ .
    >I am having a txt file with 3 fields and a table in MS-Access database.
    >I would like to update these 3 fields into that table using C++ program.
    >Could you pls help me.
    >
    >Thanks in Advance,
    >Trin.



  4. #4
    Join Date
    Jul 2007
    Posts
    2
    Quote Originally Posted by zala Vijay
    Hi Trin
    Here is a Please tell me that what verson of c++ you are using? if you are
    using visual c++ then send me e-mail so that I can send you sample project.There
    are so many ways to connect too. Using ODBC, JET Database Engine, ADO.

    Regards
    Zala Vijay



    "Trin" <trinadhm@yahoo.com> wrote:
    >
    >
    >How to connect Database(MS Access) using C++ .
    >I am having a txt file with 3 fields and a table in MS-Access database.
    >I would like to update these 3 fields into that table using C++ program.
    >Could you pls help me.
    >
    >Thanks in Advance,
    >Trin.

    I have the same trouble, please help me out ^^
    Mr. Zala Vijay, may i have some of your example project, i really need it
    i'm using visual c 6 enterprise, thanks ^^

  5. #5
    Join Date
    Jul 2007
    Posts
    25
    This is a general tutorial using mfc and odbc, Maybe it will help to have a look.
    http://www.samspublishing.com/librar...eqNum=181&rl=1

  6. #6
    Join Date
    Jul 2007
    Posts
    2
    Quote Originally Posted by manos
    This is a general tutorial using mfc and odbc, Maybe it will help to have a look.
    http://www.samspublishing.com/librar...eqNum=181&rl=1
    thanks for your references Sir..
    I prefer not to use odbc, because it's a bit difficult to me.. I have found a way to connect ms-access database into visual c++, using adodc..
    But I can't find a way to insert, update, or delete the record from the access database.. Could somebody help me out??? please.. ^^

  7. #7
    Join Date
    Jul 2007
    Posts
    25
    Ok here is an example snippet on how to insert a record using ado. You can easily extend it to update and delete records.
    http://www.codersource.net/mfc_ado_insert.html
    Hope that helps

  8. #8
    Join Date
    Oct 2011
    Posts
    1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links