CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    1,030

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

    Thanks.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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 offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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
  •  





Click Here to Expand Forum to Full Width

Featured