This section describes how to load COM and generate any FLI definitions needed to use it, and how to build a COM DLL.
COM definitions are typically described in one of two ways, either as IDL files, which allow the full range of COM definitions or as type libraries, which are generally only used for Automation. Before you can use any COM functionality in a Lisp application, you need to convert the COM definitions into Lisp FLI definitions and various supporting data structures. This corresponds to using
midl.exe or the MFC Class Wizard when writing C/C++ COM code.
Conversion of type libraries is covered in Using Automation.
You can make a DLL with LispWorks by using
save-image) with the
:dll-exports keyword. The value of the
:dll-exports keyword can include the keyword
:com, which exports (with appropriate definitions) the standard four symbols that a COM DLL needs:
You can use the function set-register-server-error-reporter to report when calls to
LispWorks COM/Automation User Guide and Reference Manual - 14 Feb 2015