Sign in to follow this  

D3DXCreateFont doesn't exist

This topic is 4262 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've come across a weird error. I went back to my project today, completely unchanged from the last time I ran it, and I was told I needed to recompile. So, I did and it now tells me that the D3DXCreateFont() function is unresolved. I've checked and the right library files are included ( d3dx9.lib ), and this error crops up for no other DirectX methods. Does anyone have any idea what could cause this? Btw I'm using DX9c with Visual Studio 2005.

Share this post


Link to post
Share on other sites
Check that your include paths are set up correctly in the compiler. It sounds like the compiler is getting an old version of the D3DX library. What version of the DX 9.0c SDK have you go installed? There's about 10 of them [smile]

Share this post


Link to post
Share on other sites
That's what I thought, but I haven't changed version since the last time I compiled. I think my version is the February 2005 version. I know there was an October update but I haven't managed to get that one yet.

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
The Feb 2005 version is pretty old, I'd recommend upgrading to the latest version (April 2006). There's a link in a sticky in this forum.

Yea, it could be a compatability issue with the libraries you are linking against, since they were made far before the retail VS2005 was released.

Share this post


Link to post
Share on other sites
I found a solution, but it's a little weird. There's a folder called x86 in the lib folder and I copied the d3dx9.lib from there into the main folder. seems to have it sorted. I think you're right though. It's time to upgrade. If only I wasn't still on a modem...
I really should get with the times!

Share this post


Link to post
Share on other sites
Sounds like either the SDK wasn't installed properly, or the paths were changed for some reason. If that one .lib is behaving oddly, it's entirely possible that there's others that are too.

It's still worthwhile getting the latest SDK, even on dialup if you leave it going overnight or something (Or use a download resumer). 390.2MB should take you about 24 hours to download (24.65 hours assuming 4.5K/sec), which is 3 days at 8 hours a day (If you're using a download resumer).

Anyone know if it's possible to get the SDK on CD? That might be easier...

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Anyone know if it's possible to get the SDK on CD? That might be easier...
I'm pretty sure they stopped doing that a couple of years ago. The last one I managed to get on CD was 9.0.

MSDN subscriptions obviously provide it in CD/DVD form, but they aren't cheap [wink]

Jack

Share this post


Link to post
Share on other sites

This topic is 4262 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this