Page 1 of 1
DLL error when trying to run my project
Posted: Thu Apr 01, 2010 19:25
by markblue777
Hi all,
I am just trying to put CEGUI into a DirectX 9 project (the simple sample project you get from the direct x sample browser)
however when i try to run it i get the error that the d3dx9d_40.dll was not found.
I am using CEGUI 0.6.2 and i am running visual studio's 2008.
Has anyone got any ideas? btw the error only started when i added the CEGUI DX 9 renderer.
Regards
Mark
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 19:56
by Timo
You need to update your DirectX runtime.
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 20:37
by markblue777
Hi,
I have updated the runtime and the sdk to the latest and yet i still have the same issue. any thoughts?
Regards
Mark
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 21:00
by Timo
Oh, sorry I didn't notice that was the debug DLL. I'm not absolutely sure, but i think you need to link d3dx9.lib instead of d3dx9d.lib in your project.
EDIT: It seems the debug DLLs are included in DX SDK, so I guess the best option would be to use them. Just copy them to a place where your program can find them. I've never use the debug libraries myself, I just always link the retail libraries cause I'm lazy.

Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 21:27
by markblue777
Hi Timo,
What i have noticed is that it is asking for the _40.dll but i only have the _41.dll. Could it possibly be that the CEGUI dx9 render interface is made for a different version of the DX sdk?
Regards
Mark
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 21:42
by Timo
markblue777 wrote:Hi Timo,
What i have noticed is that it is asking for the _40.dll but i only have the _41.dll. Could it possibly be that the CEGUI dx9 render interface is made for a different version of the DX sdk?
Regards
Mark
If you're using the precompiled CEGUI binaries then I suppose it might require a debug DLL supplied with older version of the DXSDK. But if you compile CEGUI yourself it should work with any relatively new DXSDK version.
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 21:52
by markblue777
OK mate. i'll give it a go and see what happens. Thanks for the help man
Regards
Mark
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 22:12
by markblue777
still no joy after building them on my machine. any other ideas?
Regards
Mark
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 22:19
by Timo
So it still asks _40.dll after compiling CEGUI with latest DXSDK?
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 22:26
by markblue777
yeah
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 22:49
by Timo
Well that's really weird. If you did build it then it should now use D3dx9d_42.dll. (or whatever version you have)
So, all I can say is, make sure you built the right configuration (debug vs. debug_static), and that your project is actually using the new lib/dll you built.
Re: DLL error when trying to run my project
Posted: Thu Apr 01, 2010 22:54
by markblue777
ok then mate, cheers. I will give it another go and see what i can do.
Regards
Mark