SftMask/OCX 6.5

SftMask.Direct Property

Softel vdm, Inc.

Returns an ISftMaskVTable interface pointer.

Syntax       

Get

VB.NET

refSftMaskVObj = object.Direct  As ISftMaskVTable

VB

Set refSftMaskVObj = object.Direct  As SftMaskVTable

C#.NET

ISftMaskVTable refSftMaskVObj = object.Direct;

VC++

ISftMaskVTable* refSftMaskVObj = object->Direct;
ISftMaskVTable* refSftMaskVObj = object->GetDirect();

C

HRESULT object->get_Direct(ISftMaskVTable** refSftMaskVObj);

Delphi

refSftMaskVObj := object.Direct  : ISftMaskVTable;

object

A SftMask object.

refSftMaskVObj

Returns an ISftMaskVTable interface pointer.

Comments

The Direct property returns an ISftMaskVTable interface pointer.

The ISftMaskVTable interface describes a SftMask 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 SftMask object is used (i.e. the control). By retrieving the ISftMaskVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

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

The ISftMaskVTable interface exposes all properties and methods that are supported by the SftMask object.

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


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