News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

.RC Problem

Started by bijan311, February 03, 2010, 03:15:54 AM

Previous topic - Next topic

bijan311

My problem is when i compile my program with this .RC file.

ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";

i get this error.

syntax error

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.

ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";

i get this error.

syntax error

Thank You

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?
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.

Quoteconsult resource handling articles accordingly (we don't provide support for teaching how to do that).

I think the answer was quite clear.

This is not a C:B related question, that means it violates our forum rules !

Topic locked .