ado, adOpenDynamic what header file?
I'm getting compiler errors that state "adOpenDynamic" is not defined. :confused: :mad:
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?
Re: ado, adOpenDynamic what header file?
I figured it out.
you have to include "no_namespace" in the import statement.