Sign in to follow this  
GuardStar

XFile Help

Recommended Posts

GuardStar    122
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

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