Next Previous Up Top Contents Index

A Creating COM Projects

A.3 Creating vtable and dual interfaces

The New Project wizard can generate custom (vtable) and dual (vtable and dispatch) COM interfaces. They are available on the wizard's stub-selection page, from the options "Custom (vtable) interfaces" and "Dual interfaces".

Because custom and dual interfaces generate both server and client interfaces, it is necessary to ensure that the names of the server and client interfaces do not collide. Thus when either of these is selected an additional page appears for specifying suffixes for the names of the generated interfaces.

Figure A.5 Custom and dual interface class suffix selection.

The server class suffix is appended to the name of the interface when generating the server class name. For example, if the server class suffix is -server then the server class for an interface IBar is named <IBar-server>.

The supplied client class suffix is appended to the name of the interface to generate the client class name. If the "Generate client classes with suffix" box is not checked, no client classes are generated, and client methods specialize on <C-Interface> instead.


Getting Started with Functional Developer - 31 MAR 2000

Next Previous Up Top Contents Index