All Manuals > LispWorks COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

NextPrevUpTopContentsIndex

standard-i-unknown

Class
Summary

A complete implementation of the i-unknown interface.

Package

com

Superclasses

com-object

Subclasses

standard-i-dispatch
standard-i-connection-point-container

Initargs

:outer-unknown

An optional interface pointer to the outer unknown interface if this object is aggregated .

Description

The class standard-i-unknown provides a complete implementation of the i-unknown interface.

The class provides a reference count for the object which calls the generic function com-object-initialize when the object is given a reference count and com-object-destructor when it becomes zero again. These generic functions can be specialized to perform initialization and cleanup operations.

The class also provides an implementation of query-interface which calls the generic function com-object-query-interface. The default method handles i-unknown and all the interfaces specified by the define-com-implementation form for the class of the object.

There is support for aggregation via the :outer-unknown initarg, which is also passed by built-in class factory implementation.

Example

Inheriting from a non-COM class requires standard-i-unknown to be mentioned explicitly:

(define-com-implementation doc-impl
                           (document-mixin
                            standard-i-unknown)
  ()
  (:interfaces i-doc))
See also

define-com-implementation
standard-i-dispatch
standard-i-connection-point-container
com-object-initialize
com-object-destructor
com-object-query-interface
com-object
i-unknown


LispWorks COM/Automation User Guide and Reference Manual - 14 Feb 2015

NextPrevUpTopContentsIndex