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: -
Methods
Name | Description |
---|---|
Increments the reference counter. | |
Query of the reference to an implemented interface via the IID. | |
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.