Next Previous Up Top Contents Index

4.6 Building an Automation server application

4.6.4 Defining dispatch methods for the dispinterface

To define dispatch methods for the dispinterface, you simply define Dylan methods on your dispinterface class. For example:

define function foo(this :: <my-dispatch-object>) 
  => status :: <SCODE>;
  ...
end;

define function bar(this :: <my-dispatch-object>, name :: <BSTR>, #key color :: <BSTR>, size :: <integer>) => (status :: <SCODE>, value :: <integer>); ... end;

4.6.4.1 - Dispatch method argument requirements
4.6.4.2 - Dispatch method return value requirements

OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index