Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 07.02.06 21:28 
Hallo,

ich lade eine Bitmap aus einer Ressource:

ausblenden Delphi-Quelltext
1:
(comp as timage).Picture.Bitmap.LoadFromResourceName(hinstance,'4');					


Die Fehlermeldung ist folgende
Zitat:

---------------------------
Benachrichtigung über Debugger-Exception
---------------------------
Im Projekt Tic_Tac_Toe.exe ist eine Exception der Klasse EResNotFound aufgetreten. Meldung: 'Ressource 4 wurde nicht gefunden'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.
---------------------------
OK Hilfe
---------------------------


Im Anhang findet ihr einen Screenshot.

Das verstehe ich net :gruebel: :motz:
Einloggen, um Attachments anzusehen!
_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Lossy eX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1048
Erhaltene Danke: 4



BeitragVerfasst: Mi 08.02.06 09:39 
Du hast genau das Problem wie jemand anderes gestern auch. Du möchtest gerne die Resource mit dem Namen '4' laden aber ich denke mal du müsstest die Resource mit der ID 4 laden. Also LoadFromResourceID nicht Name.

_________________
Nur die Menschheit ist arrogant genug, um zu glauben sie sei die einzige intelligente Lebensform im All. Wo nicht mal das nachhaltig bewiesen wurde.
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 08.02.06 11:59 
:party:

Thx hat funktioniert.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot