Previous Table of Contents Next


19.2 Mapping for Interfaces

   A CORBA interface maps in a straightforward fashion to an Automation View Interface. For example, the following CORBA interface:

   module MyModule // OMG IDL

   {interface MyInterface{

   // Attributes and operations;...};};

   maps to the following Automation View Interface.

   [odl, dual, uuid(...)]interface DIMyModule_MyInterface: IDispatch{

   // Properties and methods;...};

   The interface DIMyModule_account is an Automation Dual Interface. A Dual Interface is a COM vtable-based interface, which derives from IDispatch, meaning that its methods can be late-bound via IDispatch::Invoke or early-bound through the vtable portion of the interface. Thus, DIMyModule_account contains the methods of IDispatch as well as separate vtable-entries for its operations and property get/set methods.