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