Compiler

Compiling a Windows program is no different than compiling any other program in the Graphical Development Environment, except that you may have some extra files in your project (.MAK) file. Specifically, Windows programs need to specify a resource script (.RC) file and a module-definition (.DEF) file in their project lists.

Summary: Windows programs require special compiler options.

You can use many of the same compiler options you use for standard C programs. However, Windows programs require two special options: /Gw and /Zp. The /Gw option adds the Windows prolog and epilog code to each function; this code is required for the application to run in the Windows environment. The /Zp option packs structures, ensuring that the structures used in your application are the same size as the corresponding structures used by Windows.

Since every Windows program requires these options, the Graphical Development Environment adds them automatically when you build a Windows program. Unless your Windows program has special requirements, you will not need to alter the default settings. (You indicate the program's executable type with the Project command on the Options menu.)