Autor Beitrag
Saarpoint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Fr 28.03.08 22:22 
Hallo!

Mein Programm beinhaltet mehrere Icons, welche ich als Ressource eingebunden habe.
Jetzt möchte ich, aus dem laufenden Programm heraus, ein bestimmtes Icon als ICO-Datei extrahieren, damit der Benutzer sie verwenden kann.

Weiß jemand, wie das geht?

Andreas

_________________
Standart := false; Standard := true;
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Fr 28.03.08 22:36 
Hi,

Willst du jetzt aus deinem eigenem oder aus einemm anderen Programm ein Icon extrahieren :?: Aus deinem eigenen: speicher sie doch nochmal ab und gib sie getrennt aus.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Fr 28.03.08 22:42 
ja, aus meinem eigenen.
Ich will halt sicher gehen, dass die Icons beim eigentlichen Programm dabei sind, da indirekt auch die Registry beim Start auf mein Programm zugreift

_________________
Standart := false; Standard := true;
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Fr 28.03.08 22:53 
Habe gerade gelesen, dass man von der Registry nicht direkt auf eine EXE verweisen soll...???
Also muss ich die Icons wohl doch separat mitliefern.
Normalerweise macht man dies ja via DLL (wie z.B. shell32.dll,21), aber ich wollte halt nur eine einzige Datei.
Ich werde also nicht drum herum kommen...

Trotzdem danke!

_________________
Standart := false; Standard := true;
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Sa 29.03.08 07:58 
user profile iconSaarpoint hat folgendes geschrieben:
Normalerweise macht man dies ja via DLL (wie z.B. shell32.dll,21)
Eine DLL ist eigentlich auch nur eine EXE :wink: . Du kannst also genauso gut MyApp.exe,21 schreiben, das macht keinen Unterschied. Dass man das nicht machen soll, wäre mir neu, zumindest Microsoft hält sich nicht dran :wink: .

Zum extrahieren des Icons kannst du Suche in: Delphi-Forum, Delphi-Library TRESOURCESTREAM verwenden.

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)