-
July 1st, 2013, 05:19 PM
#1
Windows 64 bit or 32 bit preprocessor directives
Hi,
I want to connect to an SQL Server database using ADO with VC++.
In order to do that you need to import an external dll, like so:
#import "C:\\Program Files (x86)\\Common Files\\System\\ado\\msado15.dll"
What if the OS is not 64 bit? That would mean the (x86)-suffix would be incorrect.
Does anyone know how to work around this using certain preprocessor directives?
Something like this, maybe?:
#if 64bit
#import "C:\\Program Files (x86)\\Common Files\\System\\ado\\msado15.dll"
#else
#import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll"
#endif
Tags for this Thread
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
|