Autor Beitrag
aDm1n
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP
Turbo Delphi Explorer
BeitragVerfasst: Fr 21.04.06 11:58 
Tach auch,
kann mir jemand sagen was hierdran falsch ist? Wenn ich folgendes Projekt (und auch alle anderen die ich neu schreibe) kompilieren möchte kommt dieser Fehler:

"Project Verschluesselung.exe raised exception class EResNotFound with message 'Resource TForm1 not found'."

Das Projekt ist sehr símpel und besteht nur aus einer form und einer unit. Ich habe das ganze mit mehreren Delphi-Versionen ausprobiert und es kam überall der gleiche Fehler. Mitlerweile habe ich das schon dreimal neugeschrieben und es hat sich nichts geändert. Ich hoffe ihr könnt mir helfen.

P.S. Wehe das funktioniert jetzt bei euch einfach so... :)

Ach ja und noch was. Sobald ich einmal versucht habe das zu kompilieren konnte ich nicht mehr zwischen der Code- und er Fensteransicht wechseln. Würde mich freuen wenn jemand hierfür auch noch eine Lösung hätte.
Einloggen, um Attachments anzusehen!
_________________
Gruß aDm1n


Zuletzt bearbeitet von aDm1n am So 23.04.06 01:59, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 21.04.06 13:17 
Moin!

Starte die IDE, leg ein neues Projekt an und starte das mal sofort ohne was zu ändern (leeres Formular). Gleicher Fehler? :arrow: Delphi neu installieren... :?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
aDm1n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP
Turbo Delphi Explorer
BeitragVerfasst: Fr 21.04.06 13:51 
So, hab das mal gemacht und es kam kein Fehler :-/
Und Delphi habe ich jetzt schon mehrmals neuinstalliert. Deshalb hatte ich das auch mit anderen Versionen probiert.

edit: Ich habe jetzt grade mal ein ähnliches Programm geschrieben und es hat zunächst funktioniert und dann nach ein paar Änderungen (nicht von bedeutung) kam der Fehler dann wieder... -_-

_________________
Gruß aDm1n
aDm1n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP
Turbo Delphi Explorer
BeitragVerfasst: So 23.04.06 00:33 
Der Fehler scheint irgendwie immer nur dann aufzutreten wenn ich ein zweites Form oder eine zweite unit verwende. Solange ich ein Programm schreibe, was nur aus einer Unit besteht und nur ein Fenster hat, scheint alles zu funktionieren.
Hat den keiner eine Lösung für dieses Problem?? Bitte helft mir. (*ganz lieb schau*)

_________________
Gruß aDm1n
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 23.04.06 10:05 
Üblicherweise steht gleich hinter dem Schlüsselwort implementation folgende Zeile:
ausblenden Delphi-Quelltext
1:
{$R *.dfm}					

Diese Zeile weißt den Compiler/Linker an die zu der PAS-Datei gehörige DFM-Datei (DFM = Delphi-ForMular - also die Datei wo alle Daten deiner Form gespeichert sind) als Resource in die Exe mit einzubinden. Wenn diese Zeile fehlt wird die Datei eben nicht mit eingebunden und wenn das Programm gestartet wird tritt beim laden der Form ein Fehler auf weil die Resource mit allen Daten der Form eben nicht gefunden werden kann.

Gruß, Motzi

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
aDm1n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP
Turbo Delphi Explorer
BeitragVerfasst: So 23.04.06 15:23 
Juhuu, Danke. Das war der Fehler. Ich hab mir irgendwie angewöhnt die Zeile immer zu löschen (ich weiß war net besonders schlau). Jetzt funktioniert alles wieder. Danke nochmal.

_________________
Gruß aDm1n