Microsoft DirectX 8.1 (Visual Basic)

DirectX8.Direct3DCreate

Creates a Direct3D8 object.

object.Direct3DCreate() As Direct3D8

Parts

object
Object expression that resolves to a DirectX8 object.

Return Values

Returns a Direct3D8 object.

Error Codes

If the method fails, an error is raised and Err.Number is set.

Remarks

This function succeeds in all cases except out-of-memory conditions. It creates a Direct3D8 object that supports enumeration and enables the creation of Direct3DDevice8 objects.

Note that calling this method samples the current set of active display adapters. If the user dynamically adds adapters, either by adding devices to the desktop or by hot-docking a laptop, then those devices will not be enumerated for the lifetime of this Direct3D8 object. Creating a new Direct3D8 object will expose the new devices.