Using a .ico file with code::blocks windows

Hi

I need to use a custom icon file for a windows app. I have the .ico file but I don’t know how to get Code::Blocks to use it. Any ideas?

cheers
Gareth

Make a new file called “resource.rc” with the following line in it:

  
  
IDR_APP_ICON ICON "myIconFile.ico"  
  

Add this to your project and add the ICO file to your ./bin/data folder. Your application will have its own icon now.

The first icon defined in the resource file will be used as the application icon.

into file resource.rc add this code:

  
GLUT_ICON ICON "Flame.ico"   

into file resource.rc add this code:

  
GLUT_ICON ICON "MyIco.ico"