Rohit Vipin Mathews
Rohit Vipin Mathews

Reputation: 11787

how to change the name of project in vc++ 2008( in vs2008)

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

Answers (2)

Joseph Willcoxson
Joseph Willcoxson

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

demoncodemonkey
demoncodemonkey

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

Related Questions