Delphi-PRAXiS
Seite 2 von 3     12 3      

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 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,


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:33 Uhr.
Seite 2 von 3     12 3      

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