[gme-users] Parsing models from XME files

Cuong Minh Tran vaioinman at googlemail.com
Thu Feb 17 16:54:04 CST 2011

Hi everyone

I used the below code to parse an xme file.
CComPtr<IMgaDumper> dumper;
COMTHROW( dumper.CoCreateInstance(L"Mga.MgaDumper") );
CComBSTR xmlPath(temp.c_str());
HRESULT hres = dumper->DumpProject(project->getProjectI(), xmlPath);

The code works fine except that the new model is loaded and added to list of existing models. This behaviour is not what I wanted. I want the list to contain only the new model. 

Is there a way to do what I want?

Best regards

Cuong Tran.

More information about the gme-users mailing list