News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Application icon wxWidgets/Windows

Started by jeancf, February 28, 2007, 11:31:00 AM

Previous topic - Next topic

jeancf

Hi,

I have written a wxWidgets application under MS Windows. I would like to compile it with a custom icon for the application (i.e. I want my own icon visible in the file manager on the .exe file) but I can't find out how to do it with CodeBlocks.

Can you let me know where to specify that option?

Thanks,

/~jc

Biplab

Did you use wxWidgets wizard?

If, yes open the resource.rc file in C::B. Change the following line
aaaa ICON "wx/msw/std.ico"
To
aaaa ICON "<Path_to_your_icon>/<Your_icon>.ico"

If not, then create a file with the above content and above name and add it to your project.

Regards,

Biplab :)
Be a part of the solution, not a part of the problem.

jeancf

Thanks! It worked.

I thought it was an option that needed to be set in the C::B project. I am a bit puzzled by the "aaaa" though. what does that correspond to?

/~jc

Biplab

AFAIK, if there are multiple icons in a resource file Windows sets the first Icon as Program Icon. Windows determines this by Icon Names (Alphabetically). Thus aaaa will ensure that this comes first in search and thus I've used that peculiar one. ;)

Regards,

Biplab
Be a part of the solution, not a part of the problem.

jeancf

It makes sense. Thanks a lot for your help.