ILE C/C++ Programmer's Guide

Identifying Program and User Entry Procedures

When a module object is created, a program entry procedure (PEP) and a user entry procedure (UEP) may also be generated.

Both ILE C and C++ require the main() function, but in ILE C, it becomes the UEP of an ILE program. After the PEP runs, it calls the associated UEP, and starts the ILE program running.

As part of the binding process, a procedure must be identified as the startup procedure, or program entry procedure (PEP). When a program is called, the PEP receives the command line parameters and is given initial control for the program. The procedures that get control from the PEP are called user entry procedures (UEP).

An ILE module contains a program entry procedure only if it contains a main() function. Therefore, one of the modules being bound into the program must contain a main() function.


[ Top of Page | Previous Page | Next Page | Table of Contents ]