AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Öffnen D6 pro. *.dpr in Delphi Tokyo
Thema durchsuchen
Ansicht
Themen-Optionen

Öffnen D6 pro. *.dpr in Delphi Tokyo

Ein Thema von Lake01 · begonnen am 10. Feb 2018 · letzter Beitrag vom 10. Feb 2018
Antwort Antwort
Seite 2 von 3     12 3      
Lake01

Registriert seit: 23. Jul 2014
12 Beiträge
 
#11

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

  Alt 10. Feb 2018, 09:17
Das ist doch Blödsinn!
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.
  Mit Zitat antworten Zitat
Horst0815

Registriert seit: 23. Mai 2011
Ort: Görlitz
150 Beiträge
 
Delphi XE Starter
 
#12

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

  Alt 10. Feb 2018, 09:19
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?
  Mit Zitat antworten Zitat
Lake01

Registriert seit: 23. Jul 2014
12 Beiträge
 
#13

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

  Alt 10. Feb 2018, 09:20
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.
  Mit Zitat antworten Zitat
Horst0815

Registriert seit: 23. Mai 2011
Ort: Görlitz
150 Beiträge
 
Delphi XE Starter
 
#14

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

  Alt 10. Feb 2018, 09:21
setz mal ein "vcl." vor Forms
  Mit Zitat antworten Zitat
Lake01

Registriert seit: 23. Jul 2014
12 Beiträge
 
#15

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

  Alt 10. Feb 2018, 09:24
setz mal ein "vcl." vor Forms
Habe ich schon probiert, funktioniert auch nicht -> gleiches Ergebnis.
  Mit Zitat antworten Zitat
Horst0815

Registriert seit: 23. Mai 2011
Ort: Görlitz
150 Beiträge
 
Delphi XE Starter
 
#16

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

  Alt 10. Feb 2018, 09:26
kannst du ein Projekt hier hochladen?
  Mit Zitat antworten Zitat
Benutzerbild von dummzeuch
dummzeuch

Registriert seit: 11. Aug 2012
Ort: Essen
1.468 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#17

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

  Alt 10. Feb 2018, 09:56
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
Thomas Mueller
  Mit Zitat antworten Zitat
Lake01

Registriert seit: 23. Jul 2014
12 Beiträge
 
#18

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

  Alt 10. Feb 2018, 10:16
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.
  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.140 Beiträge
 
Delphi 12 Athens
 
#19

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

  Alt 10. Feb 2018, 13:45
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.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat
Benutzerbild von Uwe Raabe
Uwe Raabe

Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.009 Beiträge
 
Delphi 12 Athens
 
#20

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

  Alt 10. Feb 2018, 14:36
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,
Uwe Raabe
Certified Delphi Master Developer
Embarcadero MVP
Blog: The Art of Delphi Programming
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 3     12 3      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:15 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz