Microsoft DirectX 8.0 (Visual Basic)

DirectXFile.RegisterTemplates

Registers custom templates.

object.RegisterTemplates( _
    TemplateData As Any, _
    Size As Long)

Parts

object
Object expression that resolves to a DirectXFile object.
TemplateData
Buffer consisting of a Microsoft® DirectX® file in text or binary format that contains templates.
Size
Size of the TemplateData buffer, in bytes.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

DXFILEERR_BADFILEFLOATSIZE
DXFILEERR_BADFILETYPE
DXFILEERR_BADFILEVERSION
DXFILEERR_BADVALUE
DXFILEERR_PARSEERROR

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

All templates must specify a name and a Universally Unique Identifier (UUID).