integrate an icon in a compiled .exe
integrate an icon in a compiled .exe
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
IncludeBinary, CatchImage
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: integrate an icon in a compiled .exe
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