1
Window / Re: Set icon from resource
« on: August 31, 2013, 03:42:25 am »
Thanks for the answers.
I haven't researched how to embed an image in the binary with gcc yet, but I know that at least the icon can be stored as a C array and obviously compiled into the binary, then it's easier to get the address.
Searching for set icon on this forum it seems it's a largely unsolved problem, cross platform but even just windows (embedded resource).
If nothing quick and simple comes up I won't spend too much time on that for linux.
Edit: if anybody wonder, here is where and how I used it for Windows: https://github.com/shazbits/wiretap/blob/master/src/src/ProfileViewer/main.cpp
I haven't researched how to embed an image in the binary with gcc yet, but I know that at least the icon can be stored as a C array and obviously compiled into the binary, then it's easier to get the address.
Searching for set icon on this forum it seems it's a largely unsolved problem, cross platform but even just windows (embedded resource).
If nothing quick and simple comes up I won't spend too much time on that for linux.
Edit: if anybody wonder, here is where and how I used it for Windows: https://github.com/shazbits/wiretap/blob/master/src/src/ProfileViewer/main.cpp