Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hello people from codeproject.

I have been doing some fixes in a project that was originally made in MFC/C++ ; I want to know how to rename the .rc file. I will explain more specifically in this picture:

[^]

DbcEditor.rc is the object that I want to rename, something like Editor.rc

And more important, The other question, once the program is running and compiled, the main form has a main title, How could I edit it? I just want to change the text in the form, not the name itself for the object, I will expalin it better with the following picture:

http://i.stack.imgur.com/SNQAW.png[^]

"THE CURRENT MAIN FORM" is the text that I wan to get changed.

All the information will be accepted, thanks for reading.

Regards.
Posted

1 solution

the rename is simply right click on the rc file in the visual studio project explorer, and choose rename

the dialog caption rename is trickier ... it's either statically defined in the rc file itself (use the VS resource view to examine it) or it's set by code, probably in OnInitDialog
 
Share this answer
 
Comments
Member 11267069 7-Jan-16 15:52pm    
Hello and thanks for the answer.

yeah, I have been dealing with the caption and It is trickier as you said.

How could I find the OnInitDialog code?? the this one could be placed?

Regards Barneyman.
barneyman 7-Jan-16 15:56pm    
Edit/Find ?

i'd look for the string .. it'll either be in the DIALOG rc definition or it'll be a string in the stringtable (in which case then look for that define elsewhere) or it'll be inline in the code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900