LispWorks COM/Automation User Guide and Reference Manual > 1 Using COM > 1.7 Calling COM interface methods

NextPrevUpTopContentsIndex

1.7.1 Data conversion when calling COM methods

All IDL definitions map onto FLI definitions, mirroring the mapping that midl.exe does for C/C++. However, IDL provides some additional type information that C/C++ lacks (for instance the string attribute), so there are some additional conversions that Lisp performs when it can.

The COM API uses the information from the IDL to convert data between FLI types and Lisp types where appropriate for arguments and return values of COM method calls. In particular:

In COM, all parameters have a direction which can be either in , out or both in and out (referred to as in-out here). Arguments and values for client-side COM method calls reflect the direction as described in the following sections. For a complete version of the example code, see the file examples\com\manual\args\args-calling.lisp in the LispWorks installation.

1.7.1.1 In parameters

1.7.1.2 Out parameters

1.7.1.3 In-out parameters


LispWorks COM/Automation User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex