Sign in to follow this  

XFile Help

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

Greetings Everyone, I recently got the second edition of "Programming Role Playing Games with Direct X" and while following along I came accross a problem. In the XFile code the author used the IDirectXFile interface which is Deprecated. I decided to use the SDK docs to see if I could fix the code but I need some direction with the IDirectXFileEnumObject::GetNextDataObject function. in the source code it looks like this // Loop through all objects looking for the frames and meshes while(SUCCEEDED(pDXEnum->GetNextDataObject(&pDXData))) { ParseXFileData(pDXData, TempFrame, TexturePath); ReleaseCOM(pDXData); } GetNextDataObject doesn't exist in the new interface. Since this function is looping can i use while(SUCCEEDED(pDXEnum->GetChild(i++, &pDXData))) { ParseXFileData(pDXData, TempFrame, TexturePath); ReleaseCOM(pDXData); } or am i totally out to lunch? Thanks GuardStar

Share this post


Link to post
Share on other sites

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