the universal method(all comilers, windows only)
:
add a file with rc as extension to tyour project, then this line:
1 ICON "your_ico.ico"
then compile.
PS:use SnIco Edit to create new icon, or , or Icon Sushi to extract it from an executable.
PS2: sorry for my english