NO

Author Topic: Renaming a resource file  (Read 3513 times)

marcelodf2014

  • Guest
Renaming a resource file
« on: September 03, 2014, 10:44:17 PM »
I renamed the resource file (.rc) in my project right-clicking the file in the source tree view.
Now, I would like to rename the Symbol file, but the "Includes..." option in the Resource Menu won't let me do it.
Is there any other way to rename the Symbol file?

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Renaming a resource file
« Reply #1 on: September 04, 2014, 11:11:55 AM »
Yes,
Right-click the resource file and choose open as text.
In the text version of resource file edit the #include statement with the name you want. Then from a file explorer window rename the include file.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

  • Guest
Re: Renaming a resource file
« Reply #2 on: September 04, 2014, 01:32:11 PM »
Dou you mean the *.ico file?
Than use the same method Frankie has showed.

JohnF

  • Guest
Re: Renaming a resource file
« Reply #3 on: September 04, 2014, 03:46:27 PM »
I guess we should know what he means by the 'Symbol file'??

John

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Renaming a resource file
« Reply #4 on: September 04, 2014, 06:06:39 PM »
When you create a resource file the IDE creates an .h header files that holds the #defines for the resource IDs.
I.e.
Code: [Select]
// INCLUDE FILE generated by "Pelles C for Windows, version 8.00".

#define IDC_MAGNIFIER  8001
#define IDM_MAINMENU  2001

...
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

JohnF

  • Guest
Re: Renaming a resource file
« Reply #5 on: September 04, 2014, 08:19:06 PM »
Right, well that's easy enough you have already given him the solution.

John

marcelodf2014

  • Guest
Re: Renaming a resource file
« Reply #6 on: October 04, 2014, 01:19:17 AM »
It took me a while, but I did as instructed and it worked fine.
Thank you all for the responses