• Create Account

## Need help

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

4 replies to this topic

### #1dawoodr  Members

Posted 21 August 2014 - 03:35 PM

Hello!

Well I am stuck, it feels like I am hitting my head against a brick wall and have been doing it for several days now.

I am reading Frank D. Luna's book "Introduction to 3D Game Programming with DirectX 11" and seriously I am stuck at chapter 4. I am trying to use the initialization code for Direct3D and I can't get it to work.

I have included the common code folder and the June SDK 2010 in the directories as the book said, and then I open the .sln file from chapter 4 for initializing Direct3D but I just get errors.

Error 1 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D

Error 2 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D

Error 3 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D


Regards!

### #2dawoodr  Members

Posted 21 August 2014 - 04:02 PM

Also for those who are familiar with the book, if you download the sample codes from d3dcoder.net there is no "d3dx11.h" file in the common folder, wtf!?

### #3js09427  Members

Posted 21 August 2014 - 06:47 PM

What's up. There's no d3dx11.h file in the common folder because that file is in the June 2010 DirectX SDK.

I don't think you've set up your include directories correctly.

### #4L. Spiro  Members

Posted 21 August 2014 - 08:11 PM

POPULAR

there is no "d3dx11.h" file in the common folder, wtf!?

That’s probably because it is already located at “C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\D3DX11.h” (on a standard install—you know if you have changed the directory to somewhere else).

You need to set your Microsoft Visual Studio include directories (if you claim you already have, then you need to set them properly).

L. Spiro

### #5dawoodr  Members

Posted 22 August 2014 - 07:36 AM

Yes, I managed to fix it yesterday with some help of others.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.