I am reading the example Systray.pb.
The ico and bmp files are located at the sub-directory of "Data".
When I compile the example to be an executable, how can I also embed the resource files (ico and bmp) into the exe?
[SOLVED] How to embed an ico to exe
[SOLVED] How to embed an ico to exe
Last edited by avatar on Sat Apr 17, 2010 3:24 am, edited 3 times in total.
Re: How to embed an ico to exe
Code: Select all
; Include the icons in the exe
DataSection
MyIconLabel:
IncludeBinary "icon filename.ico"
MyOtherIconLabel:
IncludeBinary "other icon filename.ico"
EndDataSection
; Use CatchImage() instead of LoadImage()
CatchImage(0, ?MyIconLabel)
CatchImage(1, ?MyOtherIconLabel)
; I don't remember if this is the exact syntax, but lookup CatchImage() in the manual.
Re: How to embed an ico to exe
Thanks a lot.