Re: exe icons



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dwayne Carter wrote:
> Hi there, 
> 	Does anyone know how I can set the icon for the .exe file of my program
> under windows xp? I've made the .ico, but can't see how to put the 2
> together. Can I do this as part of my program? or is there a free
> application that will do it?

The icon needs to be a resource of your program. Assuming you are using
the mingw compiler you therefore need a .rc file that roughly looks like
this:

A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "path/to/your.ico"

Then you need to compile it using windres

windres -i path/to/your.rc --input-format=rc -o path/to/result.res -O coff

The resulting .res file can then be linked along with the .o files to
generate the binary.

Greetings,
Armin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGD7dHhOtxKlDYm6cRAvo3AJ9GAUnF4f1462hUid6fdR6dc350PgCgjckp
MSQdR02e9YnExJzgvZ+iCak=
=FsZP
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]