TS_DelegateIUnknown

 (Available in 01 TS COM - TS_COM_DelegateIUnknown)

Purpose

Root class for all TS-dynamic-allocated COM objects.

Syntax

CLASS MyDelegateIClass INHERIT TS_DelegateIUnknown

Access methods

DateTimeAsDate - Get the 'DateTimeAsDate' property
FInit - Test if the enclosed interface is valid
AIThis - Get a static 'This' COM interface pointer.
AITypeInfo - Get a static 'ITypeInfo' COM interface pointer.
AITypeLib - Get a static 'ITypeLib' COM interface pointer.
AIDispatch - Get a static 'IDispatch' COM interface pointer.
AIUnknown - Get a static 'IUnknown' COM interface pointer.
IID - Get the IID of the enclosed interface.

Assign methods

DateTimeAsDate - Set the 'DateTimeAsDate' property

Methods

TSTraceInfo -
CMAddRef - Increment 'Ref-count' on the interface
Destroy - CALLBACK: It is adviced to use 'oObject:Axit()'
EventHandlerDel - Remove a installed event handler.
EventHandlerAdd - Install a installed event handler.
AGetInterface - Get a interface from the enclosed COM object
INIT - Create a 'TS_DelegateIUnknown' instance
NEW - CALLBACK: New ( OnInited event )
CMQueryInterface - Query the COM interface
CMRelease - Decrement 'Ref-count' on the interface

Description

This class on its own does not provide many usefull methods. The main purpose is to provide a dynamic ( GC collectable ) wrapper for the COM IUnknown interface, the library uses this class as the parent class for TD_DelegateIDispatch.

Inherits from

TS_Root2

Inherited by

TS_DelegateIDispatch

Example

See the 'TS_DelegateIDispatch' CLASS

Source

CLASS TS_DelegateIUnknown INHERIT TS_Root2
   DECLARE ACCESS AIDispatch
   DECLARE ACCESS AIThis
   DECLARE ACCESS AITypeInfo
   DECLARE ACCESS AITypeLib
   DECLARE ACCESS AIUnknown
   DECLARE ACCESS DateTimeAsDate
   DECLARE ACCESS FInit
   DECLARE ACCESS IID
   DECLARE ASSIGN DateTimeAsDate
   DECLARE METHOD AGetInterface
   DECLARE METHOD CMAddRef
   DECLARE METHOD CMQueryInterface
   DECLARE METHOD CMRelease
   DECLARE METHOD EventHandlerAdd
   DECLARE METHOD EventHandlerDel