COM Classes Tab (Project Properties Dialog Box)

See Also   Tasks

The COM Classes tab allows you to expose classes in your project as Component Object Model (COM) objects.

Note   Settings made in this tab are defined for all builds of the project, regardless of the Configuration list setting in this dialog box.

From the COM Classes tab you can:

Options

Classes with COM Extensions

This list displays all the Java class definitions in your project that are capable of being exposed through COM. Selecting a check box next to a class in the list marks the class as a COM class. Visual J++ places code at the top of the class definition in the form of a comment tag, when the OK or Apply button for the dialog box is clicked. This code notifies Visual J++ to register the class as a COM object.

Automatically Generate Type Library

When this option is selected, a type library is automatically generated each time you build your project. Visual J++ generates a type library for all the classes that are checked in the Classes with COM Extensions list.

Options

Displays the Type Library Options dialog box for setting options for the automatically created type library.

Use Existing Type Library

This option allows you to specify an existing type library file. If you choose this option and select a valid type library file or a file that contains an embedded type library, such as an OCX, DLL, or EXE file, Visual J++ creates class templates for them in your project.

Select

This option displays the COM Templates dialog box for selecting the pre-existing type library you want to use in your project. The type library may be a stand-alone file, or it could be embedded in a COM executable (such as an OCX, DLL, or EXE file).