$AppType Compiler Directive
The
$AppType
compiler directive tells the linker to create a GUI or console
application. In a console application, Delphi opens the
Input
and Output
files to read
from and write to the console. When compiling a console application,
Delphi defines the CONSOLE
conditional symbol in
all units that make up the project. The default is a GUI application.