Autor Beitrag
root_at_localhost
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 191



BeitragVerfasst: Mi 28.12.05 00:21 
Hallo zusammen,
was macht es eigentlich für einen Unterschied, ob meine Anwendung so ausschaut:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
program test;
...
begin
  frmTest := TfrmTest.Create(nil);
  try
    frmTest.ShowModal;
  finally
    frmTest.Free;
  end;
end.

oder normal so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
program test;
...
begin
  Application.Initialize;
  Application.CreateForm(TfrmTest, frmTest);
  Application.Run;
end.

Gibt es irgendeinen Grund die erstere Variante nicht zu verwenden?
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mi 28.12.05 10:56 
ich vermute ja;
im ersteren Falle werden diverse Initialisierungen nicht durchgeführt; zweitens
setzt Application.CreateForm(..) das erstere Fenster als "MainWindow".

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?