Win32 C++ Import path based on OS?
- by Zenox
I'm working with some legacy code that has an import like so:
#import "C:\Program Files\Common Files\System\ado\msado15.dll" rename("EOF", "EndOfFile")
The problem is, on a x64 machine the path for this import is in the 'Program Files (x86)' directory. Is there a preprocessor macro I can wrap around this to make it work on either?
Edit: I think I found it. _M_X64, but im not 100% sure if this is correct.