COM Object Wizard
Go Up to File Menu
File > New > Other > ActiveX > COM Object
Use the New COM Object wizard to create a simple COM object such as a shell extension. Before you create a COM object, create or open the project for an application containing functionality that you want to implement. The project can be either a VCL application or an ActiveX library, depending on your needs.
Item | Description |
---|---|
CoClass Name |
Specify the class whose properties and methods you want to expose to client applications. This is the name of the |
Description |
Enter a description for the COM object you are creating. |
Threading Model |
Choose the threading model to indicate how client applications can call your COM object's interface. The threading model you choose determines how the object is registered. You must make sure that your object implementation adheres to the model selected. |
Instancing |
Specify an instancing mode to indicate how your COM object is launched. When your COM object is used only as an in-process server, instancing is ignored. |
Interface |
Indicates the name of the COM object's default interface. By default, the COM object's interface is the same as the |
Include Type Library |
(Delphi only) Check this box to generate a type library for this object. A type library contains type information that allows you to expose any object interface and its methods and properties to client applications. If you do not check this option, the Delphi compiler does not add |
Mark interface OleAutomation |
Check this box to allow type library marshaling. This flag lets you avoid writing your own proxy-stub DLL for custom marshaling. When marking an interface as |
Implement existing interface [...] |
If you want to implement an existing interface that is registered on your system, click [...] and select an available interface from the Interface Selection dialog box. After you select one of these interfaces, the check box for Implement Existing Interface is checked. When the wizard generates the code for the |
Generate Event support code |
Check this box to tell the wizard to implement a separate interface for managing events on your Automation object. The separate interface has the name |