Thema: Delphi Anwendung ohne Forumular

Einzelnen Beitrag anzeigen

Benutzerbild von Kedariodakon
Kedariodakon

Registriert seit: 10. Sep 2004
Ort: Mönchengladbach
833 Beiträge
 
Delphi 7 Enterprise
 
#3

Re: Anwendung ohne Forumular

  Alt 7. Dez 2006, 11:45
z.B. So oder eine Konsolenanwendung, oder oder oder
Delphi-Quellcode:
Program Project1;

Uses Forms,
      SysUtils,
      Unit1 in 'Unit1.pas{Form1};

{$R *.res}

Begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  If Not SameText( ParamStr( 1 ), '/NoGui' ) Then Begin
    Application.Run;
  End Else Begin
    // Mach halt was anderes...
  End;
end.
Vorher aber nachschaun ob es überhaupt Parameter gibt, Code is nur mal so OnTheFly...


Bye Chritian
Christian
  Mit Zitat antworten Zitat