Microsoft DirectX 8.1 (C++) |
The ReadXMLFile method loads an XML project file. This method creates instances of all the objects expressed in the XML file and inserts them into the timeline, as well as applying any attributes given for the timeline, such as frame rate or default effect.
Syntax
HRESULT ReadXMLFile(
IUnknown *pTimeline,
BSTR XMLName
);
Parameters
pTimeline
Pointer to a timeline object's IUnknown interface.
XMLName
String that specifies the name of the file to load.
Return Value
Returns S_OK if successful. Otherwise, returns VFW_E_INVALID_FILE_FORMAT or another error code.
Remarks
This method does not clear existing objects from the timeline before it inserts the new objects defined in the XML file. If you need to refresh an existing timeline, call IAMTimeline::ClearAllGroups first.
See Also