program Project1;
{$APPTYPE CONSOLE} //将这一行去掉
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
...
>>解释一下{$APPTYPE CONSOLE}的作用
将编辑光标置于APPTYPE中,按下F1键,您会看到Borland的帮助:
Application type
See also
Type Parameter
Syntax {$APPTYPE GUI} or {$APPTYPE CONSOLE}
Default {$APPTYPE GUI}
Scope Global
Remarks
The $APPTYPE directive controls whether to generate a Win32 console or graphical UI application.
...
学习编程,看帮助是基本功哟