Autor Beitrag
Tower
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: Fr 22.04.05 11:36 
Hallo!

Ich habe heute zum ersten Mal Delphi 2005 so richtig benutzen wollen.
Dazu habe ich ein altes (kleines) Delphi7-Win32-Projekt importiert. Das Kompilieren klappt auch, es läuft auch wie es soll.
Allerdings "unterkringelt" er mir im Editor fast alle Units rot, und zeigt als Fehler "Unit-Name [soundso] kann nicht aufgelöst werden". Auch viele Bezeichner markiert er so und meldet "Nicht deklarierter Bezeichner [xyz]".

Zum großen Teil sind das Delphi-eigene Units und Bezeichner (Windows, Forms bzw. TPanel, TBitBtn)...

Hat jemand eine Idee, woran das liegt und wie ich es abstellen kann?

Danke schonmal!

Moderiert von user profile iconTino: "Werkzeug" angegeben.
freedy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 403
Erhaltene Danke: 1

Winows 7
Delphi XE
BeitragVerfasst: Mi 09.05.07 09:36 
Hallo Tower,

ich habe neuerdings ein ähnliches Problem mit Delphi 2006. Alle Unit-Namen sind Standardunits von Delphi. Wenn jemand eine Lösung weiß, wäre ich um eine Antwort sehr dankbar.

Grüße,
Michael
Apo95
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Win2000, WinXP, WinServer 2003 Standard x86, Win7x64
Delphi 6 Enterprise, D2009 Architect, RAD Studio XE6 Architect
BeitragVerfasst: Do 19.04.12 19:13 
Hallo, Tower,

ich habe seit jetzt das Problem mit Delphi 2009; die Meldung lautet: "Unit-Name ButtonComps kann nicht aufgelöst werden.". Die Datei ButtonComps.dcu liegt im richtigen Verzeichnis; er scheint sie jedoch zu übersehen...

Weiß hier jemand Rat?

LG,
Apo95

_________________
Lette-Verein MIA
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 19.04.12 19:29 
user profile iconApo95 hat folgendes geschrieben Zum zitierten Posting springen:
Die Datei ButtonComps.dcu liegt im richtigen Verzeichnis; er scheint sie jedoch zu übersehen...

dcu steht für Delphi Compiled Unit, diese liegt also schon im Binärformat vor.

Was du benötigst ist eine Unit mit der Endung pas.

Näheres dazu siehe auch hier ;)

Gruß,
Marc
Apo95
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Win2000, WinXP, WinServer 2003 Standard x86, Win7x64
Delphi 6 Enterprise, D2009 Architect, RAD Studio XE6 Architect
BeitragVerfasst: Fr 20.04.12 21:04 
Soll ich das BPL-Packege erneut installieren?

_________________
Lette-Verein MIA
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 20.04.12 22:52 
Error Insight funktioniert nicht immer korrekt. Das ist zwar seit der Einführung mit Delphi 2005 im Laufe der Versionen immer besser geworden, aber perfekt ist es auch bei XE2 noch nicht. Warum es manchmal nicht funktioniert, kann man nur raten... wenn es so leicht zu bestimmen wäre, wäre es auch schon behoben. ;-)
Apo95
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Win2000, WinXP, WinServer 2003 Standard x86, Win7x64
Delphi 6 Enterprise, D2009 Architect, RAD Studio XE6 Architect
BeitragVerfasst: Sa 21.04.12 00:11 
Ich werds versuchen...
;-)

Vielen Dank erstmal!

Gruß,
Apo95

_________________
Lette-Verein MIA
ssb-blume
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 375
Erhaltene Danke: 7

XP, W7, W8
Deutschland
BeitragVerfasst: Sa 21.04.12 09:36 
Genau deshalb mach ich nur noch C#!!!
Hansi

_________________
Brain: an apparatus with which we think we think.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 21.04.12 10:58 
Ich wähle die Sprache für ein Projekt eher nach deren Features und Grundfeatures der IDE und nicht wegen Komfortfeatures der IDE. ;-)
Ich komme mit dem Error Insight jedenfalls gut klar und es wird ja auch immer besser. Erstens läuft es bei mir meistens gut und zweitens erkenne ich "echte" und "falsche" Fehler fast immer automatisch ohne drüber nachzudenken.