I have an application that includes some CNG (Bcrypt.dll) code. I want to be able to build my app on windows 7 and have the bcrypt funcitonality compile and run, but I want to "skip" it if I am building on a windows XP machine (at compile time) (i want to printout "skipping encryption" or something if i compiled it under XP).
is there a way at compile time know if my machine is windows 7 or XP so it will compile the appropriate code? I don't really want to change my build target/makefile/project file based on this (I dont want to /D anything) , I want anyone who builds this to just build and it will generate whatever their computer supports...
Is this possible?
Thanks!