|
-
May 28th, 2009, 04:58 PM
#1
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?
-
May 28th, 2009, 06:42 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|