Reputation: 11787
I have created a vc++ MDI application. Now i want to rename it so that the name on the application main window is the new name.
Upvotes: 0
Views: 1117
Reputation: 6040
Do a grep for IDR_MAINFRAME in your resource files (.rc and .rc2). If you find a string table entry, modify it with your application name. If you don't find one, add a string table entry.
Upvotes: 1
Reputation: 11957
Bit of a filthy hacky process this, but I've had to do it many a time...
Close the solution, leaving VS2008 open.
First you might want to make a backup of the current solution folder, unless you're using version control.
Now use Edit -> Find&Replace -> Find In Files to search for your current application name, in the solution folder recursively.
Open each occurrence, change it to the new name and save the file.
Close VS2008.
In the solution folder rename the *.vsproj and project folder to the new name.
Reopen VS2008 and the solution, and check it all works fine.
Upvotes: 1