| Microsoft DirectX 8.1 (C++) | 
Adds a data object as a child object.
HRESULT AddDataObject( LPDIRECTXFILEDATA pDataObj );
If the method succeeds, the return value is DXFILE_OK.
If the method fails, the return value can be one of the following values.
| DXFILEERR_BADALLOC | 
| DXFILEERR_BADVALUE | 
Use the IDirectXFileSaveObject::CreateDataObject method to create the IDirectXFileData object before calling this method.
  Header: Declared in Dxfile.h.
  Import Library: Use D3dxof.lib.