Categories > Coding > C++ >

Cannot open source file "d3dx9.h" - No such file or directory

Posts: 2014

Threads: 198

Joined: Apr, 2021

Reputation: 16

Posted

Hey,

I've got a new error. I added in my C++ project the d3dx9.h thingy and it says a error. It should be working fine as a standard library, shouldn't it? Anyways, how can I fix that? I'm using Visual Studio 2019.

  • 1

Added

@boyke it removed the "no such directory", but it still says cannot open source file

 

  • 0

Random quote here...

Posts: 5

Threads: 1

Joined: Oct, 2021

Reputation: 1

Replied

You need the DirectX 9 SDK, download and install it and then include and link it in your project, and don't use the directory in the program files directory or whatever, you should use the system environment variable DXSDK_DIR

<AdditionalIncludeDirectories>$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
<!-- for x64 replace x86 with x64 -->
<AdditionalLibraryDirectories>$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>d3d9.lib;%(AdditionalDependencies)</AdditionalDependencies>
  • 0

0x90

dingleberry#2286

vip

Posts: 249

Threads: 26

Joined: Dec, 2020

Reputation: 28

Replied

@boyke Why would u do that bruh...

 

Install the DirectX SDK and put the path in ur include directory and library directory lol.

  • 0

Posts: 381

Threads: 42

Joined: Feb, 2021

Reputation: 9

Replied

Yeah im getting this too, help.

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

Xorenos

Jimmy "The Carpet" Skovic

Posts: 46

Threads: 0

Joined: Feb, 2021

Reputation: 10

Replied

other renderers exist and there are better frameworks than imgui

  • 0

You are a feedback loop.

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )