8

I am building Desktop apps with Visual Studio C++ 2017 on Windows 10. Compatibility with Windows 7 and 8 is required.

May I use the latest Windows 10 SDK for this, or do I have to use the Windows 8.1 SDK?

2
  • 1
    Generate a temporary Win32 project using the project wizard and read the comments in the generated file targetver.h then look at the posible definitions of _WIN32_WINNT in <SDKDDKVer.h>. Define _WIN32_WINNT with the appropriate value in your project build options. Defining _WIN32_WINNT with the appropriate version removes newer/updated APIs from the windows header files. The temporary project is just so you can see clean versions of the files, delete it when you are done investigating. Commented May 30, 2017 at 12:45
  • 1
    you may use latest sdk
    – RbMm
    Commented May 30, 2017 at 12:54

1 Answer 1

14

You can use the Windows 10 SDK to write Windows desktop applications compatible with Windows 7 and up. The minimum target version is controlled through preprocessor symbols (WINVER and _WIN32_WINNT). Set them to 0x0601 to target Windows 7 and up.

See Using the Windows Headers for details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.