Hello,
i tryed to set a Icon for my Projekt in DevC++.
I found this Quote in the Board:
The first icon in your resource file will be used as the icon of the executable. You'll have to create your resource file manually though, AFAIK Code::Blocks does not have a dialog for it like Dev-cpp. It's not extremely hard, just put something like this in it:
Code:
MY_ICON ICON "my_icon.ico"
The first word is the name of the icon (not important unless you want to refer to it in your code), the second word indicates it's an icon and then comes the name of the file to use.
Bat it doesn't work! The Compiler output is a preprocessing fail?
Here are my Steps:
1. I create a Empty Projekt in Code::Blocks and saved it and add a main.cpp (Simple Hello World)
2. I try to compile - Works!
3. I created a ico.rc and put this in: MY_ICON ICON "test.ico"
4. I put the test.ico in my Projekt-Folder
5. I add the ico.rc in my Code-Blocks Projekt
6. I try to compile - Error!
What's wrong?
// Sorry if my Englisch is not Perfect