Author Topic: .RC Problem  (Read 2083 times)

Offline bijan311

  • Multiple posting newcomer
  • *
  • Posts: 11
.RC Problem
« on: February 03, 2010, 03:15:54 am »
My problem is when i compile my program with this .RC file.
Code: [Select]
ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";
i get this error.
Code: [Select]
syntax error
Thank You

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: .RC Problem
« Reply #1 on: February 03, 2010, 06:49:27 am »
My problem is when i compile my program with this .RC file.
Code: [Select]
ICON_SMALL ICON "c:/users/bijan/pictures/program_icons/notepad.ico";
i get this error.
Code: [Select]
syntax error
Thank You

You asked a question about icons some days ago and got this answer from MortenMacFly:
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.

Quote
consult 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 .