Page 1 of 1
integrate an icon in a compiled .exe
Posted: Wed Apr 06, 2011 4:47 pm
by daft
Is there an easy way to integrate an icon or two into a compiled exe file? I'd like to switch my tray icons and don't want to have separate icon files in the program directory.
Re: integrate an icon in a compiled .exe
Posted: Wed Apr 06, 2011 4:48 pm
by ts-soft
IncludeBinary, CatchImage
Re: integrate an icon in a compiled .exe
Posted: Wed Apr 06, 2011 4:51 pm
by TomS
Code: Select all
Enumeration
#TrayIcon_0
#TrayIcon_1
EndEnumeration
CatchImage(#TrayIcon_0, ?Systray_0)
CatchImage(#TrayIcon_1, ?Systray_1)
;AddSysTrayIcon(#SysTrayIcon, WindowID,#TrayIcon_0)
End
DataSection
Systray_0: IncludeBinary "systray0.ico"
Systray_1: IncludeBinary "systray1.ico"
EndDataSection