CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2001
    Location
    Beijing, P.R.China
    Posts
    56

    How can I use ADO in a C program

    I need to use ADO in a C program, where classes should not be used. Is it possible?
    thx


  2. #2
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    Re: How can I use ADO in a C program

    from where are you going to use ADO? VS enviroment?


  3. #3
    Join Date
    Jul 2001
    Location
    Germany
    Posts
    220

    Re: How can I use ADO in a C program

    There's a tutorial in the article section here.
    http://www.codeguru.com/mfc_database/index.shtml

    "Writing a comment in your source does not necessariliy mean that your source is commented"

  4. #4
    Join Date
    Apr 2001
    Location
    Beijing, P.R.China
    Posts
    56

    Re: How can I use ADO in a C program

    I wrote it in VC


  5. #5
    Join Date
    Sep 2001
    Location
    Nowhere
    Posts
    132

    Re: How can I use ADO in a C program

    in your StdAfx.h :

    #import "C:\Program Files\comun files\system\ado\msado15.dll" rename_namespace("AdoNS") rename "EOF", "adoEOF" ) rename( "EOS", "adoEOS" )

    using namespace AdoNS;




    look at following classes:
    _ConnectionPtr
    _RecordsetPtr
    _CommandPtr
    _StreamPtr (not very usefull)
    _RecordPtr (not very usefull)

    there are doc in MSDN:
    "Command (ADO for Visual C++ Syntax)"
    "Recordset (ADO for Visual C++ Syntax)"
    "Connection (ADO for Visual C++ Syntax)"
    ...

    I hope it's help

    ...addicted to cpp...

  6. #6
    Join Date
    Apr 2001
    Location
    Beijing, P.R.China
    Posts
    56

    Re: How can I use ADO in a C program

    but in C, not in C++, how can I use it?


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