Using Delphi 7, one could make a console application (also known as no-GUI application) by having a project file like this:
program ApplicationName;
{$APPTYPE CONSOLE}
{$R 'aresource.res' 'aresource.rc'}
uses SysUtils;
begin
end.
The line {$R 'aresource.res' 'aresource.rc'} is optional. It is used to define a resource, specifically an icon for the application. The RC file is a plain text file that contains the following line:
1 ICON "myapplication.ico"
Therefore all the code for the application goes inside the begin-end pair in the DPR file.
2008-04-17
Abonați-vă la:
Postare comentarii (Atom)




Niciun comentariu:
Trimiteți un comentariu