?/TD>
Microsoft DirectX 9.0

IDirectXFileData::AddDataObject Method


Adds a data object as a child object.

Syntax

HRESULT AddDataObject(      

    LPDIRECTXFILEDATA pDataObj );

Parameters

pDataObj
[in] Pointer to an IDirectXFileData interface, representing the file data object to add as a child object.

Return Value

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_BADALLOCMemory allocation failed.
DXFILEERR_BADVALUEParameter is invalid.


Remarks

Use the IDirectXFileSaveObject::CreateDataObject method to create the IDirectXFileData object before calling this method.

See Also

IDirectXFileSaveObject::CreateDataObject


© 2002 Microsoft Corporation. All rights reserved.