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

com-object-initialize Generic Function

Summary

Called when a COM object gets its first interface pointer.

Package

com

Signature

com-object-initialize object

Method signatures

com-object-initialize (object standard-i-unknown)

Arguments
object
A COM object.
Description

The generic function com-object-initialize is called by the built-in class standard-i-unknown at the point where the first COM interface pointer is made for object. Prior to this, object is known only to Lisp and is not involved in any COM operations. The built-in primary method specializing on standard-i-unknown does nothing.

This function should not be called directly by user code.

Examples
(defmethod com-object-initialize :after
                                 ((my-doc doc-impl))
  (ensure-open-document-file my-doc))
See also

com-object-destructor
standard-i-unknown


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:38