Generating C++ Runtime Code Templates

To access a component interface through external APIs using C++, PeopleSoft Application Designer generates a template in the form of boilerplate C++ code that you can adapt to your purposes.

External C++ APIs are located in the <PS_CFG_HOME>\ExtAPI_C directory.

This section describes how to generate the template code.

Image: Generate C Template Option

This example illustrates generating a C++ template in PeopleSoft Application Designer.

Option to generate C template

To generate a C++ template for a component interface:

  1. Open a component interface definition in PeopleSoft Application Designer.

  2. Right-click anywhere in the definition view to display the menu.

  3. Select Generate C Template.

    When the template is successfully generated, a message appears stating the name and location of the template file.

    Note: The template file is generated in the directory specified by the TEMP or TMP system environment variable on your client machine.

  4. Add the generated template file to the project.

    In Microsoft Visual C++:

    1. Open the project created earlier.

    2. Select Project > Add To Project > Files.

    3. Select the generated file.

    4. Click OK.

  5. Edit the generated file and modify the source code to suit your needs.

  6. Build the project to generate an executable (.exe) file.