Interface ITcUnknown

ITcUnknown defines the reference counting as well as querying a reference to a more specific interface.

Syntax

TCOM_DECL_INTERFACE("00000001-0000-0000-e000-000000000064", ITcUnknown)

Declared in: TcInterfaces.h

Required include: -

Interface ITcUnknown 1: Methods

Name

Description

TcAddRef

Increments the reference counter.

TcQueryInterface

Query of the reference to an implemented interface via the IID.

TcRelease

Decrements the reference counter.

Remarks

Every TcCOM interface is directly or indirectly derived from ITcUnknown. As a consequence every TcCOM module class implements ITcUnknown, because it is derived from ITComObject.

The default implementation for ITcUnknown will delete the object if its last reference is released. Therefore an interface pointer must not be dereferenced after TcRelease() has been called.