SftOptions 1.0

SftOptions.Direct Property

Softel vdm, Inc.

Returns an ISftOptionsVTable interface pointer.

Syntax       

Get

VB.NET

refSftOptionsVObj = object.Direct  As ISftOptionsVTable

VB

Set refSftOptionsVObj = object.Direct  As SftOptionsVTable

C#.NET

ISftOptionsVTable refSftOptionsVObj = object.Direct;

VC++

ISftOptionsVTable* refSftOptionsVObj = object->Direct;
ISftOptionsVTable* refSftOptionsVObj = object->GetDirect();

C

HRESULT object->get_Direct(ISftOptionsVTable** refSftOptionsVObj);

Delphi

refSftOptionsVObj := object.Direct  : ISftOptionsVTable;

object

A SftOptions object.

refSftOptionsVObj

Defines optional product customization.

Comments

The Direct property returns an ISftOptionsVTable interface pointer.

The ISftOptionsVTable interface describes a SftOptions object (i.e. the control itself). It is used in Visual Basic to insure that vtable binding is used. Visual Basic uses dispatch interface binding (early and late) when a SftOptions object is used (i.e. the control). By retrieving the ISftOptionsVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

Any SftOptions control that is used with Visual Basic should use the ISftOptionsVTable interface if performance is important. Visual Basic uses vtable binding for all other SftOptions objects (such as Header, IO, etc.). Visual Basic will however use dispatch interface binding for the control object (SftOptions).

The ISftOptionsVTable interface exposes all properties and methods that are supported by the SftOptions object and is identical to the ISftOptions interface.

Other languages (such as C++) can use the SftOptions object directly and do not need to retrieve the ISftOptionsVTable interface. The ISftOptions interface which implements the SftOptions object is a dual interface.

Example

With SftOptions1.Direct
    .BulkUpdate = True
    .Add "", "Topic1", "Sample Topic 1", entrySftOptionsTopic, "", "", _
        Nothing, "", "", "", ""
    .Add "", "Topic2", "Sample Topic 2", entrySftOptionsTopic, "", "", _
        Nothing, "", "", "", ""
    .BulkUpdate = False
    .InitializationComplete
End With

See Also  SftOptions Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2002 - Softel vdm, Inc. - www.softelvdm.com