0% found this document useful (0 votes)
137 views

Using The Windows SDK For Windows 8 With Vs C++ 2010

The document discusses how to use the Windows 8 SDK with Visual Studio 2010. It provides instructions to download and install the Windows 8 SDK and then modify project properties in VS 2010 to reference the new SDK paths instead of the default Windows SDK paths. This allows using the Windows 8 SDK headers, libraries and other files with a VS 2010 project instead of the default Windows SDK.

Uploaded by

anon_249434392
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views

Using The Windows SDK For Windows 8 With Vs C++ 2010

The document discusses how to use the Windows 8 SDK with Visual Studio 2010. It provides instructions to download and install the Windows 8 SDK and then modify project properties in VS 2010 to reference the new SDK paths instead of the default Windows SDK paths. This allows using the Windows 8 SDK headers, libraries and other files with a VS 2010 project instead of the default Windows SDK.

Uploaded by

anon_249434392
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Executive Bloggers

Visual Studio

Application Lifecycle Management

Languages

.NET Framework

Platform Development

Visual C++ Team Blog


Using the Windows Software Development Kit (SDK) for Windows 8 Consumer Preview with Visual Studio 2010
vcblog 25 Mar 2012 11:58 AM 7

Now that the Windows Software Development Kit (SDK) for Windows 8 Consumer Preview has been released, I would like to show you how you can use the Windows 8 SDK with Visual Studio 10.

Download and install the SDK from http://msdn.microsoft.com/en-us/windows/desktop/hh852363. Note the location of your Win8 SDK install by default it is %PROGRAMFILES%\Windows Kits\8.0\ Open your project in VS 2010. The instructions to do this in VS11 with the v100 platform toolset are similar and you may try that out as well, but these instructions below show how to do this in VS 2010. For each project where you want to use the Windows 8 SDK, go to project properties, VC++ Directories

Change the following properties (if you installed the SDK to a different location, replace the SDK path with your custom install location): In Executable Directories replace $(WindowsSdkDir)bin with $(ProgramFiles)\Windows Kits\8.0 \bin\x86 In Include Directories add $(ProgramFiles)\Windows Kits\8.0\Include\um;$(ProgramFiles) \Windows Kits\8.0\Include\shared at the beginning and remove $(WindowsSdkDir)include

In Library Directories replace $(WindowsSdkDir)lib with $(ProgramFiles)\Windows Kits\8.0\lib\win8 \um\x86 In Exclude Directories replace $(WindowsSdkDir)include with $(ProgramFiles)\Windows Kits\8.0 \Include\um;$(ProgramFiles)\Windows Kits\8.0\Include\shared When targeting x64, replace x86 with x64

Thats it you should be ready to build and run!

Alex Thaman Senior Test Lead Visual C++ Team Microsoft Corp.

Comments
28 Mar 2012 4:27 PM
ChuckOp

Good post Alex! Go Yo Momma! 5 Apr 2012 3:42 PM


Brian R. Bondy

I assume this doesn't work with C++/CX? It seems that the SDK doesn't include a command line compiler tools. 10 Apr 2012 8:54 AM
Alex Thaman _VisualC

@Brian - that is correct. We don't have the support in the VS 2010 C++ tools to compile C++/CX code. It is also correct that the Windows 8 SDK does not include compilers. -Alex 4 May 2012 4:48 AM
sky

I am trying to build my an old project to include new windows 8 SDK by following above steps but it is failing with follow error1>D:\win8sdk\Include\um\winsdkver.h(21): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory Any help? 7 May 2012 3:58 AM
Skype Download Free

Your information is very good.I like it.it's very helpfull for me.keep it up. Thanks for shareing it.

17 May 2012 2:17 AM


Jeff.W

Can I use ToastNotifier class to show a toast with vs2010 and win8 sdk? 17 May 2012 2:26 AM
Jeff.W

More information here: I want to develop a desktop application, this app will show a toast. ToastNotifier class support both desktop and metro apps. The problem is, for such desktop app want to show a toast, which develop envirment should be used. Must VS2011? or I can use VS2010 + Win8 SDK. Any help ? Thanks a lot!

You might also like