Autor Beitrag
nilsener1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52

Win 98, XP
D4 prof.
BeitragVerfasst: Di 10.01.06 23:54 
Hallo,

habe mit irgendwie mein project zerschossen, so dass ich es nicht mehr kompilieren kann. Im project war neben meiner eigentlichen Unit1 noch eine 2te Unit1 geöffnet, habe diese dann gelöscht und alles neu gespeichert. meine eigentliche unit1 (mit form1) ist noch vollständig vorhanden aber lässt sich jetzt nicht mehr kompilieren (syntax stimmt). ich denke ich muss irgendwelche einstellungen in delphi4 vornehmen um das project zu reparieren.

hat jemand eine idee? bin am verzweifeln.

gruss nilsener
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mi 11.01.06 00:14 
Ja, Project zerschossen ... ok. Lässt sich nicht mehr kompilieren ... ok. Ja und nun? Was bringt er denn für eine Fehlermeldung? Meine Glaskugel hab ich leider in Deutschland vergessen.

Wie hast Du eine zweite Unit1 in das Projekt bekommen? Und wie hast Du diese gelöscht? Im Projekt oder nur auf der Platte? Fragen über Fragen ...
nilsener1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52

Win 98, XP
D4 prof.
BeitragVerfasst: Mi 11.01.06 08:39 
da ich leider auch keine glaskugel habe danke ich dir schonmal für deine antwort, aus meiner dürftigen beschreibung des problems darfst du entnehmen, dass ich überhaupt keine ahnung habe wo ich ansetzen soll. eine fehlermeldung taucht nicht auf, wenn ich kompiliere (F9) verschwindet form1 für ca. 0,2s, dann ist alles wie vorher. die 2te unit1 habe ich aus einem anderen project geöffnet um code aus dieser zu übernehmen (copy/paste). danach habe ich diese einfach wieder geschlossen (nicht gelöscht von festplatte). solange ich die fremde unit1 geöffnet hatte kompilierte es einwandfrei. ich habe den eindruck, dass irgendwie die verbindung zwischen der project-datei und der unit1 fehlt???

gruss nilsener
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mi 11.01.06 08:54 
Zeig bitte mal den Quelltext deiner *.dpr.

Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
nilsener1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52

Win 98, XP
D4 prof.
BeitragVerfasst: Mi 11.01.06 19:44 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
program Project1;

uses
  Forms;

{$R *.RES}

begin
  Application.Initialize;
  Application.Run;
end.


gruss nilsener

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
nilsener1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52

Win 98, XP
D4 prof.
BeitragVerfasst: Mi 11.01.06 19:52 
es läuft wieder, habe mal mit einer project datei aus einem anderen project verglichen, es fehlt die hälfte. nachdem ich geändert habe läuft alles wieder.

ausblenden 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}

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


vielen dank für eure hilfe!!

gruss nilsener
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 11.01.06 19:54 
Sollte so aussehen:
ausblenden 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}

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

Öffne mal die Projektdatei (dpr) und füge über das Menü "Projekt -> Zum Projekt hinzufügen" Unit1 wieder hinzu.
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mi 11.01.06 19:54 
da scheint irgendwie weng was zu fehln...
ausblenden 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}

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

normalerweise schaut die so ungefähr aus
nilsener1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52

Win 98, XP
D4 prof.
BeitragVerfasst: Do 12.01.06 14:24 
es läuft wieder, die dpr datei war tatsächlich das problem. ich danke euch für eure hilfe!!

gruss nilsener