Previous Topic: What Does It Look Like?

Generating and Building

You can generate and build the tutorial reference model immediately, without having to do anything to it.

To generate, build, and run the tutorial reference model:

  1. Open the tutrefer.mdl model.

    image

  2. Open a Generate and Build window.
  3. Select all of the non library objects in the window.

    Generating and Building (1)

  4. Click the Generate and Build toolbar button.

    CA Plex expands the selected entities and highlights all of the generatable objects under it.

  5. A Confirm Generate dialog appears, indicating the number of objects that are generated. Not all of the scoped objects are selected. Click Yes.

    CA Plex generates those objects, and then summarizes the generation process.

  6. CA Plex prompts you to compile and build the objects. Click Yes.

    CA Plex starts Microsoft Visual Studio to compile the generated source files.

    Note: You will see several warnings in the Message Log during the compilation process that indicate that no source for the various views (views are the files that end with the extension VIW) were submitted to the ODBC generator. Do not worry about the warning; your application will function properly.

    You can tell that your build is done when the label on the Microsoft Visual Studio task bar button changes from the name of the model to Microsoft Visual C++ or, if you have opened the Visual Studio window so that you could watch the build, you can tell that it is finished when the cursor returns to the top of the build summary.

  7. In the Generate and Build window, right click the Project Manager function.
  8. Choose Create Exe from the pop up menu.
  9. Visual Studio creates an executable file for the function.
  10. Switch to Windows Explorer, find the directory that stores your compiled files, and double click Projects.exe. The default location for the compiled files is:

    PlexInstallationDirectory/Tutrefer/Gen/Release

  11. The tutorial reference model application starts:

    Project Manager

  12. Click Maintain Employees to add some employee records.
  13. When prompted to select a data source, choose Plex r7.0 Tutrefer.dsn.
  14. Click Create New Project to add a project and its tasks.
  15. Click Maintain Projects to verify that the information you added is there.

    Note: For more information, see Testing the Application in the chapter “Putting It All Together.”