SftButton/OCX 2.5

SftButton.Direct Property

Softel vdm, Inc.

Returns an ISftButtonVTable interface pointer.

Syntax       

Get

VB.NET

refSftButtonVObj = object.Direct  As ISftButtonVTable

VB

Set refSftButtonVObj = object.Direct  As SftButtonVTable

C#.NET

ISftButtonVTable refSftButtonVObj = object.Direct;

VC++

ISftButtonVTable* refSftButtonVObj = object->Direct;
ISftButtonVTable* refSftButtonVObj = object->GetDirect();

C

HRESULT object->get_Direct(ISftButtonVTable** refSftButtonVObj);

Delphi

refSftButtonVObj := object.Direct  : ISftButtonVTable;

object

A SftButton object.

refSftButtonVObj

Returns an ISftButtonVTable interface pointer.

Comments

The Direct property returns an ISftButtonVTable interface pointer.

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

Any SftButton/OCX control that is used with Visual Basic should use the ISftButtonVTable interface if performance is important. Visual Basic uses vtable binding for all other SftButton objects (such as DataObject, etc.). Visual Basic will however use dispatch interface binding for the control object (SftButton).

The ISftButtonVTable interface exposes all properties and methods that are supported by the SftButton object.

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


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