Generated Application Code

Each composite part you develop represents a piece of the finished application. At some point, you must integrate the various pieces into a runnable whole. This integration point is called the main part, a nonvisual composite based on the IVBMain class.

At a minimum, the main part contains the primary part (an icon representing the IVBMain class) and a composite representing the first window that appears in the finished application. To configure certain aspects of main( ), edit properties of the primary part. (An example of this is specifying an IBM Open Class resource library other than the default.)

For each main part processed, VisualAge creates several files and puts them in the current working directory:

.cpp
The code file containing the main( ) function definition and part implementation.

.hpp
The header file for the .cpp file.

.h
A resource header file for the .cpp file. This file contains resource IDs for your part. It is generated under any of the following circumstances:

.rc
A resource file that contains any strings used in the part. This file is only generated if you have opted to have VisualAge assign resource IDs.


Related concepts
Generated Part Code
Primary Part
Generated Code

Related procedures
Generating Source Code for Your Application's main( ) Function

Related references
Working with IVBMain Parts
Example of Code Generated for a Visual Composite
Code Generation Errors