There are two ways to start a sample program:
When installed, all sample programs (with the exception of the bidirectional samples, TCP/IP samples, Problem Determination samples, LAN Server samples, some of the Multimedia samples, and some of the Workplace Shell samples) appear in the sample programs folders located within the Toolkit folder. To start a sample program, open the Toolkit folder, open the folder representing the type of samples you wish to execute, and then select the appropriate sample program.
Change to the subdirectory where the sample is located, type the name of the executable file and press Enter.
Most samples include a description file (or makefile) that you can use to build the sample yourself. The name of the makefile is either MAKEFILE or filename.MAK, where filename refers to the name of the sample. To build the sample,
You must execute these commands from the subdirectory where the makefile is located in order to build the sample correctly.
NMAKE
NMAKE /f filename.MAK
For information about the NMAKE tool, refer to the Tools Reference.
Note: The makefile assumes that you are using the IBM VisualAge C++ for OS/2 compiler for code compilation.