All interface objects are registered according to the Default OLE Interface Type value (Automation Server or ActiveX Control) selected in the OLE Automation options page. Also, you can indicate whether you want a type library generated at registration time, and customize how type libraries are generated.
Interfaces that are registered as OLE automation objects are created using the Visual Basic CreateObject
statement, or similar statements in the other client tools.
Interfaces that are registered as ActiveX control objects are created by dragging the control onto the client form. ActiveX controls are particularly useful for asynchronous calling mode. (For more information on how the API works with regard to this, refer to Asynchronous Invocations. For general information on switching the calling mode in the Application Builder, refer to Using Synchronous and Asynchronous Modes.)
You might want to set the default interface type to the style you plan to use most often.
To set OLE Automation registration defaults:
This brings up the default options window for OLE Automation. These settings control how new objects are registered on the local workstation when you first add them from the Contract Repository.
The following table explains the options available on the OLE Automation options window.
Figure 3-8 OLE Automation Options
Once you have registered a module on your workstation, you can modify individual interface types to something other than the default (OLE automation server or ActiveX control) by using the properties menu on each interface object (View->Properties on the menu bar or Properties on the popup menu; right mouse click to get popup menu).
See also help on the OLE Automation Options.