Win8 and VS 2012 Demo Steps

Discuss Direct3D issues from the "Introduction to 3D Game Programming with DirectX 9/10" books, such as errors, clarifications, or help with exercises.

Win8 and VS 2012 Demo Steps

Postby admin » November 14th, 2012, 6:16 pm

In Windows 8 DirectX 11 is now part of the Windows SDK. However, the Win8 version does not ship with some deprecated code like the D3DX11 library. Therefore, to get the book's samples up and running with little modification, we need to install the June 2010 SDK. The official steps are outlined in this MSDN article: ... 63275.aspx

However, below is a simplified step-by-step guide using the "Sprites and Text" sample from here:

1. Install Visual Studio 2012 Express for Windows Desktop

2. Download and install the June 2010 SDK (we needs this for D3DX11 stuff). ... px?id=6812

If you rework the samples to not use D3DX11, then you could skip this step. See ( Also, you can still use Effects11 without the June 2010 SDK, but you need to download the latest version from here: ... pdate.aspx

This version removed the dependency on D3DX11. Therefore, the only real work to be done to not depend on the old SDK is to remove the D3DX11 texture loading code, and port to DirectXTex (

3. Whichever version of Effects11 you use, you need to rebuild it with VS 2012 in debug and release to get VS 2012 versions of Effects11d.lib and Effects11.lib. Move these to the book's "Common" directory.

4. Setup paths in VS 2012 to the June DirectX SDK, just like you did in VS 2010, as outlined in the book. However, it is important that the Windows SDK path comes first, so put the DXSDK references after the defaults:

Executable Directories $(ExecutablePath);$(DXSDK_DIR)Utilities\bin\x86
Include Directories $(IncludePath);$(DXSDK_DIR)Include
Library Directories $(LibraryPath);$(DXSDK_DIR)Lib\x86

5. We need to replace all lines

#include <d3dx11.h>

with the following so that the right headers get included (the Win8 ones instead of the June 2010 ones):

#include <d3d11.h>
#include <dxgi.h>
#include <d3dx11.h>

In most of the book demos, this just has to be done in d3dUtil.h.

6. Compile/Build.
Site Admin
Posts: 197
Joined: November 5th, 2010, 8:31 pm

Return to Direct3D Books

Who is online

Users browsing this forum: No registered users and 1 guest