I could not find the appropriate help through Google, which could be followed by a total newbie (like me for C), so I will answer questions in this thread.
- First of all, you need a .ico file. Put it in the folder with your main.c. file
- In CodeBlocks go to
File → New → Empty Fileand name it. icon.rcIt should be visible in the workspace / project, otherwise CodeBlocks will not know about this file. It will be displayed in the project folder with the name Resources. - :
MAINICON ICON "filename.ico". MAINICON - , - . 1 & 2. - - CodeBlocks
, windres.exe ( ) icon.rc obj\Release\icon.res. .
, , - , -, - .