Adds a data object as a child object. Deprecated.
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_BADVALUEUse the IDirectXFileSaveObject::CreateDataObject method to create the IDirectXFileData object before calling this method.
Header: Declared in Dxfile.h.