Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio express 2012 cannot open include file: 'windows.h': No such file or directory

When I run my project I get fatal errors:

 Cannot open include file: 'windows.h': No such file or directory
 Cannot open include file: 'd3d11.h': No such file or directory
 Cannot open include file: 'd3dx11.h': No such file or directory

I have installed SDK, someone tell that I must set correct path to SDK directory, but I not know where to do it, in Tools->Options->Projects and solution I see "Option has been deprecated"

like image 400
Wizard Avatar asked Nov 12 '22 10:11

Wizard


1 Answers

@Kanglai may be right here but the error you are seeing related to the D3D headers is something different. The DX SDK ships separately from the Windows SDK. See this article on MSDN.

Where is the DirectX SDK?

The way Visual C++ handles directories has changed in recent versions, hence the deprecated message. The following blog post explains the changes and how to do the same thing in the newer versions of VS.

VC++ Directories

like image 121
Ade Miller Avatar answered Jan 13 '23 18:01

Ade Miller