Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Konsolenprogramm - Delphi 7 PE (https://www.delphipraxis.net/49704-konsolenprogramm-delphi-7-pe.html)

citybreaker 14. Jul 2005 19:58


Konsolenprogramm - Delphi 7 PE
 
Hallo,

gibt es eine möglichkeit ein Konsolenprogramm in Delphi 7 PE
zumachen? Ich habe schon im Forum gesucht und etwas gefunden,
dass ich Neu -> Konsolenprogramm machen soll. Alerdings gibts das
bei Delphi 7 PE nicht.

nailor 14. Jul 2005 20:03

Re: Konsolenprogramm - Delphi 7 PE
 
Datei->Neu->Weitere->Neu->Konsolen-Anwendung

MaBuSE 14. Jul 2005 20:10

Re: Konsolenprogramm - Delphi 7 PE
 
Zitat:

Zitat von citybreaker
gibt es eine möglichkeit ein Konsolenprogramm in Delphi 7 PE
zumachen?

Wenn Du den Menüpunkt aufrufst, dann wird nur folgender Quelltext erzeugt.
Delphi-Quellcode:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

begin
  { TODO -oUser -cConsole Main : Hier Code einfügen }

end.
Sobald in dem *.dpr ein {$APPTYPE CONSOLE} steht, ist es eine Konsolenanwendung.

Du kannst in einer Konsolenanwendung selbstverständlich auch Forms anzeigen (Form1.Show;)

Ich hoffe diese Info hilft Dir.

MaBuSE 14. Jul 2005 20:19

Re: Konsolenprogramm - Delphi 7 PE
 
Du kannst das *.dpr auch im Notepad erstellen und dann den dcc32.exe Compiler verwenden.

Beisp.
Delphi-Quellcode:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

begin
  WriteLn('Hello world');
end.
Das ganze wird nun als hello.dpr in C:\TEMP gespeichert.
Mit folgenden Befehl wird daraus eine Exe:
(Angenommen Delphi ist in C:\Programme\Borland\Delphi7 installiert)

Code:
c:
cd \temp
C:\Programme\Borland\Delphi7\bin\dcc32.exe Project1.dpr -uc:\Programme\Borland\Delphi7\lib
Damit wird eine hello.exe erzeugt.

Fertig.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz