Search code examples
c++visual-c++directx-11dxgi

Cannot open include file: 'dxgi1_2.h': No such file or directory


I am including the header file "dxgi1_2.h" in my VC++ code & I see that I'm getting the error.

Cannot open include file: 'dxgi1_2.h': No such file or directory

I know this is because, I need to install something from MSFT related to DX11. (Is the Win8 SDK enough for this header file) Can anyone kindly let me know how do I fix this error?


Solution

  • Microsoft Windows SDK for Windows 8 and .NET Framework 4.5 v8.0a should be enough, because I found it with everything in the sdk's include directory.

    enter image description here