Define a new component

You will define a new C++ component, CPPArithmetic.

StepsDefining the component

  1. Expand the cpptut package and right-click the Components folder beneath it, then select Add. The New Component Wizard displays. Apply the following settings as you page through the wizard:

    • For component name, enter CPPArithmetic.

    • For component type, choose CORBA/C++.

    • For C++ Class Name, enter CPPArithmeticImpl.

    • For C++ Library, enter libCPPArithmetic.

    • For IDL Home Interface, leave blank. (EAServer generates the default home interface later in the tutorial.)

    • For IDL Remote Interface, enter Tutorial::CPPArithmetic.

    When you finish the wizard, the component properties display.

  2. In the component properties, select the General tab. Confirm or apply the settings in the table below. Leave the remaining fields at their default settings.

    Field

    Value

    Component Type

    CORBA/C++

    C++ Class

    CPPArithmeticImpl

    C++ Library

    libCPPArithmetic (no extension)

    Copy Library

    Checked

    Debug Library

    Checked

    IDL Home Interface

    Leave blank.

    IDL Remote Interface

    Tutorial::CPPArithmetic

    Automatic Failover

    Checked

    Pooled

    Checked

    Thread Safe

    Checked

  3. Click Apply to save changes made to the component properties.