Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Öffnen D6 pro. *.dpr in Delphi Tokyo (https://www.delphipraxis.net/195192-oeffnen-d6-pro-%2A-dpr-delphi-tokyo.html)

Lake01 10. Feb 2018 08:34

Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Liste der Anhänge anzeigen (Anzahl: 2)
Hallo,

ich öffne in "Delphi 10.2 Tokyo" ein in "Delphi 6 professional" erstelltes *.dpr.

Will ich dieses nun compilieren erhalte ich die Fehlermeldung.
'Application' enthält kein Element namens 'Initialize' in Zeile 18 (18:15)

Fehlermeldung: Anhang 48527
Quelltext: Anhang 48528

Muss man beim Öffnen von alten Projekten etwas beachten bzw. konvertieren?

Danke
Tom

Horst0815 10. Feb 2018 08:44

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Wie sieht denn die komplette DPR aus?

Heist das Project eventuell "Application"
fehlt unter uses vielleicht "Forms"

haentschman 10. Feb 2018 08:51

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Liste der Anhänge anzeigen (Anzahl: 1)
Moin...:P
Läßt sich das Projekt compilieren? Wenn ja, dann ignoriere die Fehlermarkierung! Das hat noch nie funktioniert. Das wäre das erste was bei mir immer deaktiviert wird! :P
Allerdings bei der DPR ist das eher ungewöhnlich. :roll:

Bernhard Geyer 10. Feb 2018 08:57

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Wie schaut die Uses-Anweisung aus?
Ist es evtl. eine Windows Diensteanwendung?

Lake01 10. Feb 2018 08:59

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Danke für die Antworten-

Das Project läßt sich nicht compilieren und
die DPR sieht so aus:

Delphi-Quellcode:
program Viewer;

uses
  Forms,
  MainForm in 'Units\MainForm.pas' {Form1};

{$R *.res}

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

Horst0815 10. Feb 2018 09:05

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Lassen sich andere Projekte compilieren?

p80286 10. Feb 2018 09:12

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
zu füh abgeschickt su

Lake01 10. Feb 2018 09:13

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von Horst0815 (Beitrag 1393517)
Lassen sich andere Projekte compilieren?

Nein, das Problem besteht bei allen D6 DPRs.

Horst0815 10. Feb 2018 09:14

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Leg mal ein neues Projekt an und versuche das zu compilieren

p80286 10. Feb 2018 09:14

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Das ist doch Blödsinn!
Delphi-Quellcode:
Application.Initialize
steht in Zeile 10. Entweder ist der publizierte Sourcecode nicht das Original oder die IDE hat sich brutal verschluckt.
Ich geh' davon aus die üblichen Hilfsmaßnahmen - Programm beenden, Rechner herunter fahren - hast Du schon durchgeführt?
Wie sieht denn ein Minimal Source unter Tokyo aus?

Gruß
K-H

Lake01 10. Feb 2018 09:17

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von p80286 (Beitrag 1393521)
Das ist doch Blödsinn!
Delphi-Quellcode:
Application.Initialize
steht in Zeile 10. Entweder ist der publizierte Sourcecode nicht das Original oder die IDE hat sich brutal verschluckt.
Ich geh' davon aus die üblichen Hilfsmaßnahmen - Programm beenden, Rechner herunter fahren - hast Du schon durchgeführt?
Wie sieht denn ein Minimal Source unter Tokyo aus?

Gruß
K-H

Ja, Rechner neu gebootet.

Das D6 Projekt DPR habe ich so geladen wie es unter D6 abgespeichert ist.

Das ist der Code wenn ich eine neue VCL-Formularanwendung generiere
Delphi-Quellcode:
program Project1;

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

{$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

Horst0815 10. Feb 2018 09:19

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Code:
program Project1;

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

{$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

und was sagt der compiler?

Lake01 10. Feb 2018 09:20

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von Horst0815 (Beitrag 1393523)
Zitat:

Code:
program Project1;

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

{$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

und was sagt der compiler?

Das läuft ohne Fehler durch.

Horst0815 10. Feb 2018 09:21

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
setz mal ein "vcl." vor Forms

Lake01 10. Feb 2018 09:24

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von Horst0815 (Beitrag 1393525)
setz mal ein "vcl." vor Forms

Habe ich schon probiert, funktioniert auch nicht -> gleiches Ergebnis.

Horst0815 10. Feb 2018 09:26

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
kannst du ein Projekt hier hochladen?

dummzeuch 10. Feb 2018 09:56

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von Lake01 (Beitrag 1393516)
Das Project läßt sich nicht compilieren und
die DPR sieht so aus:

Delphi-Quellcode:
program Viewer;

uses
  Forms,
  MainForm in 'Units\MainForm.pas' {Form1};

{$R *.res}

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

Das ist doch ziemlich übersichtlich, da würde ich gar nicht gross nach dem Fehler suchen sondern ein neues Projekt erstellen und nur das Formular hinzufügen. Ggf. noch die Versionsinfo und die (Such-)Pfade anpassen und das wars.

twm

Lake01 10. Feb 2018 10:16

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Vielen Dank an Alle die sich hier mit beteiligt haben und versucht haben das Problem zu lösen.

Es funktioniert wenn ich ein neues Projekt erstelle und dann alles neu erstelle und die Sachen aus dem alten Project ins neue hinein kopiere.
Ist etwas Arbeit, aber auch nur notwendig wenn ich an etwas Altem etwas verbessern bzw. zufügen will

Danke noch mal. :thumb:

himitsu 10. Feb 2018 13:45

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
In den alten Projekten existieren noch nicht die Namespaces und Delphi trägt sie nicht nach, wenn Projekte upgegraded werden.

Wie schon bemerkt fehlen somit die Namespaces für umbenannte Units, wie System VCL usw.
Die kann man natürlich auch im Projekt eintragen, anstatt die Units (im USES) umzubenennen.

Uwe Raabe 10. Feb 2018 14:36

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Zitat:

Zitat von himitsu (Beitrag 1393532)
Wie schon bemerkt fehlen somit die Namespaces für umbenannte Units, wie System VCL usw.

Was mich dabei wundert: Warum meckert der Compiler dann nicht schon hier?

Delphi-Quellcode:
uses
  Forms,

himitsu 10. Feb 2018 15:35

AW: Öffnen D6 pro. *.dpr in Delphi Tokyo
 
Vielleicht gibt es ja irgendwo eine "andere" Forms.pas? :stupid:


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz