All Manuals > LispWorks COM/Automation User Guide and Reference Manual > 1 Using COM


1.8 Implementing COM interfaces in Lisp

Lisp implementations of COM interfaces are created by defining an appropriate class and then defining COM methods for all the interfaces implemented by this class.

The class can inherit from standard-i-unknown to obtain an implementation of the i-unknown interface. This superclass provides reference counting and an implementation of the query-interface method that generates COM interface pointers for the interfaces specified in the class definition. It also supports aggregation .

There are two important things to note about COM classes and methods:


Figure 1.1 The relationship between an Lisp object and its COM interface pointers

1.8.1 Steps required to implement COM interfaces

1.8.2 The lifecycle of a COM object

1.8.3 Class factories

1.8.4 Unimplemented methods

1.8.5 Inheritance

1.8.6 Data conversion in define-com-method

LispWorks COM/Automation User Guide and Reference Manual - 19 Dec 2011