Re: win32 compiled exe icon
- From: "Richard Warren" <rew primagraphics co uk>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: win32 compiled exe icon
- Date: Mon, 21 Nov 2005 08:47:09 -0000
Hello, I'm experimenting with mingw to compile gtk apps on win32. How
can icon can be inserted to a gtk win32 exe ? Is there a function that
do such thing?
If your icon is in a file called "my_icon.ico", create yourself an "rc" file
with the following single-line content:
1 ICON "my_icon.ico"
Then run:
windres my_icon.rc my_icon.o
This effectively "compiles" the icon file into a normal object file.
You can then link your "my_icon.o" object file into your .exe as normal
using gcc.
(I got most of this info a long time ago from previous mailing list
discussions of the same thing, so you might like to search the archives for
"windres" or "icons" for more details).
Hope that helps,
Richard.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]