Next Previous Up Top Contents Index

4.6 Building an Automation server application

4.6.6 Defining type information for dispatch methods

The type information for the methods in Section 4.6.4 might look like this:

make(<disp-type-info>, 
     properties: vector(...),
                 methods: 
                   vector(make(<function-description>,
                               function: foo,
                               name: "foo"),
                          make(<function-description>,
                               function: bar,
                               name: "bar",
                               argument-names: #["name", "color",
                                                 "size"],
                               argument-types: vector(<BSTR>,
                                                      <BSTR>,
                                                      <C-long>),
                               result-type: <C-unsigned>)))

The argument-types: and result-type: options are the C type designators if they can not properly be inferred from introspection of the designated function:. See <disp-type-info>, page 203 for other options you can use.


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

Next Previous Up Top Contents Index