简体   繁体   中英

DirectX 11 files cannot open source files

I've come back to a Univeristy project I developed 5 years ago using Visual Studio 2010 using DirectX11. I'm now using VS2017 Community edition and would like to upgrade the project to work with it.

I initially had some issues with my own classes but switching the toolkit from VS 2010 to VS 2017 ironed the majority out.

I seem to be having issues now with DirectX files such as D3DX11.h and D3D10.h throwing 'Cannot open source file ' insert file name here ''. These files include: windows.h, limits.h, float.h (theres nearly 7000 errors all related)

I'm guessing it's not linked with the VS2017 toolkit either?

Any suggestions or even solutions?

You should retarget solution to the Windows SDK version and Platform toolset installed on your system (Project Properties -> General tab). This should fix issues with Windows SDK (including DirectX headers) and C++ standard headers. Then D3DX*** are not part of current Windows + DirectX SDK, it is actually a part of deprecated separate DirectX SDK (see d3dx11.h missing? ), modern applications should use DirectX Toolkit instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM