Add a header file called TargetVer.h to your project that includes the following pre-processor macros:. This SDK enables you to leverage the capabilities of the Windows 10 operating system.C++ project => Properties => Configuration Properties => General.For example, you could configure your C++ project with the following: For Windows 7, that's 0x0601.įor those of you who don't know, any given Windows SDK is backwards compatible with older versions of the Windows SDK. In addition, you should define the appropriate value for _WIN32_WINNT in targetver.h. To target Windows 7 or Windows Vista, use the value 8.1, since Windows SDK 8.1 is backward compatible to those platforms. If you have other Windows SDK versions on your computer, each version of the SDK tools that you have installed appears in the dropdown. When you install a C++ Workload by using the Visual Studio installer, the required parts of the Windows SDK are also installed. This specifies the version of the Windows SDK that your project requires. The following was taken directly from C++ project property pages. Thankfully, this subject has been updated in Microsoft's MSDN. Important: Sometimes this property is referred to as Target Platform Version The following summarizes the differences between the Windows SDK Version & the Platform Toolset configuration properties.
0 Comments
Leave a Reply. |