Configuring VS 2012 with DX11 on Windows 7

Started by
3 comments, last by powly k 11 years, 2 months ago

If anyone could me help with this, I would really appreciate it. What are the necessery steps to get VS2012 to work with the DX11 June SDK?

I started reading the book "3D Game Programming with DirectX 11" yesterday. The book uses vs2010, but I have a license of vs2012 and would rather use the latter instead. I followed the instructions given by the author in a blog post. The problem is that I can build an example solution, but the program crashes once I run it.

Advertisement

in your project settings put your include folder and the lib folder in the appropiate sections. Make sure to add the directx 11 libs to the linker.

Also if you don't know how to do this yet, but you think you can just pick up programming and directx 11 on the fly, you are in for it.

If this post or signature was helpful and/or constructive please give rep.

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

// Easy to learn 2D Game Library c++

SFML2.2 Download http://www.sfml-dev.org/download.php

SFML2.2 Tutorials http://www.sfml-dev.org/tutorials/2.2/

// Excellent 2d physics library Box2D

http://box2d.org/about/

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

Vs2012 has its own DirectX SDK build in. It annoyed me too, but works fine now. See section 5 here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275.aspx

edit: you need to link the libraries like you would do it in vs2010

Vs2012 has its own DirectX SDK build in. It annoyed me too, but works fine now. See section 5 here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275.aspx

He's using windows 7, and wants to use the directx sdk.

If this post or signature was helpful and/or constructive please give rep.

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

// Easy to learn 2D Game Library c++

SFML2.2 Download http://www.sfml-dev.org/download.php

SFML2.2 Tutorials http://www.sfml-dev.org/tutorials/2.2/

// Excellent 2d physics library Box2D

http://box2d.org/about/

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

I've found #pragma comment(lib, "libname.lib") to be better; it attaches your linker settings directly to your code so they won't be lost if you copy it around.

I remember having a really hard time finding the shader compiler dll/libs when I tried DX11 - I had to download several SDKs and look through all kinds of places.

This topic is closed to new replies.

Advertisement