Entwickler-Ecke

Sonstiges (Delphi) - application error^^


Iaa_1 - Mo 14.04.08 20:22
Titel: application error^^
hi leute ich habe paar dateien von unit2.pas gelöscht jedoch habe ich nun das problem bei meinem project1:


Quelltext
1:
[Fatal Error] Project1.dpr(9): Read error on 'Application.Initialize.dcu'                    

dies meine project1:

Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1},

{$R *.res}

  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.Run;
end.

hoffe ihr wisst wie ich den misst den ich gebaut habe behebe^^
(löschen und neumachen ist net gut,ist monatelange arbeit :( )

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt


Silas - Mo 14.04.08 20:26
Titel: Re: application error^^
N'Abend!


Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1},

{$R *.res}

  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.Run;
end.

Das Komma muss ein Semikolon sein.

Wenn ich schon gerade dabei bin: Nimm in Zukunft für Code bitte die Delphi-Tags, dann ist es besser lesbar ;) .


Iaa_1 - Mo 14.04.08 20:47

nachdem ich das behoben habe kommt dieser fehler:

Quelltext
1:
[Error] Project1.dpr(9): Declaration expected but identifier 'Application' found                    

Sourcecode:

Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.res}

  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.Run;
end.


Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt


Marc. - Mo 14.04.08 20:51

Merke: Zu jedem end gehört auch ein begin! :mahn:

Cheers,
Marc.


Iaa_1 - Mo 14.04.08 20:58

danke euch es geht nun wieder :)