Getting at an embedded icon

Archives Forums/BlitzPlus Programming/Getting at an embedded icon

Orca(Posted 2005) [#1]
Hi all,

I've seen 2 different versions of changing the window icon for a blitz app, but they both loaded an external .ico file.

Is there a somewhat easy method to get at an icon that I've embedded in my exe with reshack?


Grey Alien(Posted 2005) [#2]
good question.


JoshK(Posted 2005) [#3]
ExtractIconA(hwnd,exefile$,0)


Orca(Posted 2005) [#4]
Ahh thanks..

I feel like a big bonehead now. Didn't dawn on me that that same function can take an exe. Der!


Grey Alien(Posted 2005) [#5]
OK, so that means I don't have to include the ico file in the folder as I have already added it to the .exe with ResHack. Cool. Now if only Protean IDE auto added the icon for BlitzPlus ... sigh.


Orca(Posted 2005) [#6]
You know, I recall trying to get protean to add an icon numerous times. Never got it to work.


Kevin_(Posted 2005) [#7]
halo is the WinAPI king around here...