Specifies the method to be defined.
A symbol naming the method to define.
A symbol naming the interface of the method to define. This is only required if the implementation class class-name has more than one method with the given method-name.
Specifies the implementation class and variables bound to the object with in the forms.
A symbol which will be bound to the COM object whose method is being invoked.
A symbol naming the COM implementation class for which this method is defined.
A simple lambda list. That is, a list of parameter names.
Forms which implement the method. The value of the final form is returned as the result of the method.
The value to be returned to the caller.
define-dispinterface-method defines a
method that implements the method method-name for the Automation implementation class class-name. The extended method-spec syntax is required if class-name implements more than one interface with a method called method-name (analogous to the C++ syntax
The number of parameter in lambda-list must match the declaration in the type library. Each
parameter is bound to the value passed to
IDispatch::Invoke, converted to the type specified by the method declaration and then converted to Lisp objects as specified in Data conversion when calling Automation methods. For missing values the value of the parameter is
:not-found. For a parameter marked with the
vararg attribute, the value will be an array of the values passed in the call. For
arguments, the corresponding parameter should be set by the forms to contain the value to be returned to the caller and will be converted to an automation value as specified in Data conversion when calling Automation methods.
The value should be a value which can be converted to the appropriate return type as the primary value of the method and will be converted to an automation value as specified in Data conversion when calling Automation methods. It is ignored for methods that are declared as returning void.
The define-com-method macro should be used to implement methods in dual interfaces.
LispWorks COM/Automation User Guide and Reference Manual - 23 Mar 2017