Develop DirectX 9 games in Visual Studio 2022

Matthew Armshaw 81 Reputation points
2025-03-26T20:26:24.9333333+00:00

I am wondering if it is possible to develop DirectX 9 games in Visual Studio 2022? I have downloaded the directx_Jun2010_redist.exe. I have installed it to a new directory in the C:\Program Files (x86)\Microsoft SDKs\ directory. I have downloaded files for the 'Introduction to 3D Game Programming with DirectX 9.0c A Shader Approach' text. When I try running these projects in Visual Studio 2022, the compiler returns error C1083: Cannot open include file errors for the '#include <d3dx9.h>' and '#include <dxerr9.h>' statements. It does successfully link to '#include <d3d9.h>'.

I have tried including the install directory in View->Property Page with no luck. I am more comfortable using '#pragma comment' but these statements do not work either for the two headers experiencing problems.

Any suggestions?

Thanks, Matt

{count} votes

1 answer

Sort by: Most helpful
  1. Matthew Armshaw 81 Reputation points
    2025-03-27T02:08:20.24+00:00

    Found solution using DX NuGet Package. Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.