CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    57

    ado, adOpenDynamic what header file?

    I'm getting compiler errors that state "adOpenDynamic" is not defined.


    Using V6.

    Added
    Code:
    #import "c:\Program Files\Common Files\System\ADO\msado15.dll"  rename("EOF", "EndOfFile")
    I got connection pointer to be created. But when I try to compile:

    Code:
    hr = pRs->Open("DSN=MyDb","select * from Cust", adOpenDynamic, adLockOptimistic, adCmdUnknown);
    The compiler doesn't know anything about adOpenDynamic as well ad adLock... & adCmdUnk...., I looked all over the internet and I can't find what HEADER file to include in my project.


    .... can someone one give me a hand?

  2. #2
    Join Date
    Apr 2009
    Posts
    57

    Re: ado, adOpenDynamic what header file?

    I figured it out.


    you have to include "no_namespace" in the import statement.

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