How to install target version of Windows SDK in VS2010?

I recently installed the Windows 8 SDK version (8.0 and 8.0A) along with the VS2011 beta. This led to the fact that all my VS2010 projects tried to build against the Windows SDK version 8.0 instead of 7.1A (which they should build against). I am trying to figure out how to establish which SDK should be used as the target version. I found this page:

http://msdn.microsoft.com/en-us/library/ff660764.aspx

What are the conditions:

Using the Windows SDK Tools in Visual Studio 2010

  • In Visual Studio 2010, open the solution file (.sln) or create a solution.
  • In Solution Explorer, right-click the solution node and select Properties.
  • In the Configuration list, select All Configurations.
  • In the "Configuration Properties" section, select "General."
  • For the "Platform Toolbox" parameter, select "Windows7.1SDK."
  • Click OK.

However, there is no General option in the configuration settings. Does anyone know how to do this?

+4
source share
3 answers

The documentation you found is a bit wrong: it is available in the project properties, not in the solution properties:

Platform toolset

+4
source

Creating against the 8.0 SDK should not be a problem if you appropriately define WINVER and _WIN32_WINNT before enabling windows.h . Have you tried this?

0
source

I usually determine the latitude solution with the following predefined macros for Windows XP SP3:

 WINVER=0x0501 _WIN32_WINNT=0x0501 NTDDI_VERSION=0x05010300 

Similarly, you can define your own version of Windows: additional information.

0
source

Source: https://habr.com/ru/post/1413755/


All Articles