User forums > General (but related to Code::Blocks)
.RC Problem
(1/1)
bijan311:
My problem is when i compile my program with this .RC file.
--- Code: ---ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";
--- End code ---
i get this error.
--- Code: ---syntax error
--- End code ---
Thank You
Jenna:
--- Quote from: bijan311 on February 03, 2010, 03:15:54 am ---My problem is when i compile my program with this .RC file.
--- Code: ---ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";
--- End code ---
i get this error.
--- Code: ---syntax error
--- End code ---
Thank You
--- End quote ---
You asked a question about icons some days ago and got this answer from MortenMacFly:
--- Quote from: MortenMacFly on February 01, 2010, 07:33:58 am ---
--- Quote from: bijan311 on February 01, 2010, 05:54:14 am ---Is there a way to fix this?
--- End quote ---
Yes, use the resource compiler to embed the icon into your application directly. Assuming your are using MinGW/GCC 4 on Windows (you did not tell anything about your configuration) you have to create a resource file (RC) and embed the icon as *.ico file naming it in a way it will e the very first resource (e.g. "AAAIcon"). Make sure the icon has proper size, consult resource handling articles accordingly (we don't provide support for teaching how to do that). You can have a look how Code::Blocks does that assuming your are using wxWidgets.
--- End quote ---
--- Quote ---consult resource handling articles accordingly (we don't provide support for teaching how to do that).
--- End quote ---
I think the answer was quite clear.
This is not a C:B related question, that means it violates our forum rules !
Topic locked .
Navigation
[0] Message Index
Go to full version