Advertisement Jump to content
Sign in to follow this  
chenchen

compile error: can not convert parameter from LPDIRECTXFILEDATA to LPD3DXFILEDATA

This topic is 4909 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

it also has syntax error: identifier 'LPDIRECTXFILEDATA', after I include header file <dxfile.h>, this syntax error disappeared, but there are still: error C2664: 'D3DXLoadMeshFromXof' : cannot convert parameter 1 from 'LPDIRECTXFILEDATA' to 'LPD3DXFILEDATA' Can anyone help me? Thanks very much!

Share this post


Link to post
Share on other sites
Advertisement
thanks, but LPD3DFILEDATA seems to be the updated version of old LPDIRECTFILEDATA.

so I saw from MSDN Library, the LPDIRECTXFILEDATA interface is "deprecated", does it mean we should not use it any more?

Share this post


Link to post
Share on other sites
Yeah, starting from dx9, the xfile interface has been moved to the d3dx library and is now called ID3DXFileData. So IDirectXFileData doesnt exist as of dx9.

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!