Advertisement Jump to content
Sign in to follow this  
localrob2

D3DXLoadSkinMeshFromXof problem

This topic is 4897 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'm having the same problem as this thread http://www.gamedev.net/community/forums/topic.asp?topic_id=317427 But I wasn't able to post a reply there, so Has anyone found a solution to this? I'm reading Jim Adams RPG programming book, and have run into the problem of loading an .X file. It's because of the changes MS made in directX. I believe the book was written in dX9.0, and I'm using the Oct2004 release(this is the latest version that works with VC6) Basically the problem is I get this error while trying to load an .Xfile D3DXLoadSkinMeshFromXof' : cannot convert parameter 1 from 'struct IDirectXFileData *' to 'struct ID3DXFileData * I get that the IDirectX* is outdated, and I tried changing them to ID3DX*, but just got more errors.

Share this post


Link to post
Share on other sites
Advertisement

Hi there,

If i remember correctly all you need to do is cast it (i did it not too long ago, testing some sourcecode i got from somewhere), as they are 2 different interfaces.

So:

(ID3DXFileData *)pIDirectXFileData

Yep i'm sure this worked for me


Hope it works

Laters

Share this post


Link to post
Share on other sites
Here's some advice that I give in a friendly fashion, and most sincerely: I suggest you first learn how to program in C++ before trying to learn how to do 3D graphics. Learning one while you already know the other is hard enough.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!