Microsoft DirectX 9.0

AMTimeline.SetDefaultEffectB Method

The SetDefaultEffectB method sets the default effect. If the render engine cannot render an effect, it substitutes the default effect.

Syntax

object.SetDefaultEffectB(
    pGuid As String
)

Parameters

pGuid

String that contains the GUID of the default effect.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to the following value:

Value Description
E_OUTOFMEMORY Insufficient memory.

Remarks

If you do not set a default effect, or if the effect that you specify as a default causes an error, DES uses its own default effect.

See Also