• Advertisement
Sign in to follow this  

converting from 9.0a to 9.0c - please help

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

Hello, Here I am again, with another DirectX SDK problem. I know these forums aren't just here so people can code stuff for me but I'm reading through my very first DirectX book and I've got some converting problems. I came to the conclusion a IDirectXFileDataReference COM doesn't exist anymore, as for IDirectXFileObject and the function GetNextObject too. I was wondering if anyone could tell me how to convert this from DXSDK 9.0a to 9.0c:
  // Scan for embedded templates
  while(SUCCEEDED(pDataObj->GetNextObject(&pSubObj))) {

    // Process embedded references
    if(SUCCEEDED(pSubObj->QueryInterface(IID_IDirectXFileDataReference, (void**)&pDataRef))) {
      if(SUCCEEDED(pDataRef->Resolve(&pSubData))) {
        ParseXFileData(pSubData, SubFrame, TexturePath);
        ReleaseCOM(pSubData);
      }
      ReleaseCOM(pDataRef);
    }

    // Process non-referenced embedded templates
    if(SUCCEEDED(pSubObj->QueryInterface(IID_IDirectXFileData, (void**)&pSubData))) {
      ParseXFileData(pSubData, SubFrame, TexturePath);
      ReleaseCOM(pSubData);
    }
    ReleaseCOM(pSubObj);
  }



If you have any question about the code, please ask. (Extra: I use C++ and MVSC++ EE) Please help, -Stenny [Edited by - stenny on September 16, 2006 6:38:20 AM]

Share this post


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

  • Advertisement