Microsoft DirectX 8.1 (Visual Basic) |
object.CreateDataObject( _ TemplateGuid As String, _ Name As String, _ DataTypeGuid As String, _ ByteCount As Long, _ Data As Any) As DirectXFileData
DirectXFileData object, representing the created file data object.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
DXFILEERR_BADALLOC |
DXFILEERR_BADVALUE |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
If a data reference object will reference the data object, either the Name or DataTypeGuid parameter must be a non-empty string.
Save any templates by using the DirectXFileSave.SaveTemplates method before saving the data created by this method. Save the created data by using the DirectXFileSave.SaveData method.
If you need to save optional data, use the DirectXFileData.AddDataObject method after using this method and before using SaveData. If the object has child objects, add them before calling SaveData.
DirectXFileData.AddDataObject, DirectXFileSave.SaveData, DirectXFileSave.SaveTemplates