Pelles C forum

C language => Beginner questions => Topic started by: marcelodf2014 on September 03, 2014, 10:44:17 PM

Title: Renaming a resource file
Post by: marcelodf2014 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?
Title: Re: Renaming a resource file
Post by: frankie 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.
Title: Re: Renaming a resource file
Post by: czerny on September 04, 2014, 01:32:11 PM
Dou you mean the *.ico file?
Than use the same method Frankie has showed.
Title: Re: Renaming a resource file
Post by: JohnF on September 04, 2014, 03:46:27 PM
I guess we should know what he means by the 'Symbol file'??

John
Title: Re: Renaming a resource file
Post by: frankie 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.

// INCLUDE FILE generated by "Pelles C for Windows, version 8.00".

#define IDC_MAGNIFIER  8001
#define IDM_MAINMENU  2001

...
Title: Re: Renaming a resource file
Post by: JohnF on September 04, 2014, 08:19:06 PM
Right, well that's easy enough you have already given him the solution.

John
Title: Re: Renaming a resource file
Post by: marcelodf2014 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