Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Application beenden vor erstem Erzeugen von Form (https://www.delphipraxis.net/168721-application-beenden-vor-erstem-erzeugen-von-form.html)

himitsu 7. Jun 2012 14:03

AW: Application beenden vor erstem Erzeugen von Form
 
Und der Rest ist ja auch nicht schwer:
Delphi-Quellcode:
end
else
  MessageBox(0, 'da fehlt irgendwas', PChar(ExtractFileName(ParamStr(0))), MB_OK or MB_ICONERROR);
Delphi-Quellcode:
end
else
  MessageBox(0, PChar('da fehlt ' + Fehlendes), PChar(ExtractFileName(ParamStr(0))), MB_OK or MB_ICONERROR);

Bummi 7. Jun 2012 14:36

AW: Application beenden vor erstem Erzeugen von Form
 
einen hab ich noch
Delphi-Quellcode:
if 1=0 then
  begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm2, Form2);
  Application.Run;
  end
else
  begin
      if Windows.AllocConsole then
      try
        WriteLn('Shit happens ...');
        write('> ');
        readln;
      finally
        FreeConsole;
      end;

  end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:03 Uhr.
Seite 3 von 3     123   

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