Is there any way other than CRecordset to read/write database in VC++?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Is there any way other than CRecordset to read/write database in VC++?

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    906

    Is there any way other than CRecordset to read/write database in VC++?

    Thanks.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,958

    Re: Is there any way other than CRecordset to read/write database in VC++?

    Sure. In case your database provides ODBC connectivity, it may be MFC CRecordset, ĄDO Recordset object or plain ODBC SQL API.

    The only demerit with CRecordset is need in MFC, which means, you're not able to use it in VS express edition. Under any other circumstances ir really depends. I prefer ADO in scripting languages like JavaScript. And I had a project where I created my own extra slim wrapper over plain ODBC API. As I said, it really depends.

    And now, what's wrong with CRecordset?
    Best regards,
    Igor

  3. #3
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,236

    Re: Is there any way other than CRecordset to read/write database in VC++?

    My preference is to use the ATL OLEDB Consumer classes.

  4. #4

    Re: Is there any way other than CRecordset to read/write database in VC++?

    Ado will be the best choice for OLEDB.

    Andytim
    E-XD++ Source Code: www.code-home.com

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center