April 10th, 2013, 01:09 AM
Conditional compilation issue.
I want to do conditional compilation based on whether it is windows 7 or windows 8. Here is the code below.
#if (_WIN32_WINNT >= 0x0602) //Condition to check whether it windows 7 or 8 .Based on this we can load msxml 3 or 6.
Im building the above code in windows 8 machine.
Issue here is _WIN32_WINNT should have a value 0x0602, it means it is running in windows 8 machine.Instead it has a value 0x0601 (Means it is taking windows version as windows 7 defined in sdkddkver.h).Im not sure after installing windows 8 sdk im not able to see any include or lib files in the path below C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A . but i can see all include and lib files of sdk version v7.0A available although i did not installed it.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!