Renaming a resource file

Started by marcelodf2014, September 03, 2014, 10:44:17 PM

Previous topic - Next topic

marcelodf2014

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?

frankie

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

Dou you mean the *.ico file?
Than use the same method Frankie has showed.

JohnF

I guess we should know what he means by the 'Symbol file'??

John

frankie

When you create a resource file the IDE creates an .h header files that holds the #defines for the resource IDs.
I.e.

// 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

Right, well that's easy enough you have already given him the solution.

John

marcelodf2014

It took me a while, but I did as instructed and it worked fine.
Thank you all for the responses