Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

Direct Property, SftMask Object

Returns an ISftMaskVTable interface pointer.

Syntax

Get

VB.NETrefSftMaskVObj = object.Direct As ISftMaskVTable
VBSet refSftMaskVObj = object.Direct As SftMaskVTable
C#.NETISftMaskVTable refSftMaskVObj = object.Direct;
VC++ISftMaskVTable* refSftMaskVObj = object->Direct;
ISftMaskVTable* refSftMaskVObj = object->GetDirect();
CHRESULT object->get_Direct(ISftMaskVTable** refSftMaskVObj);

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.

See Also SftMask Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.