Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Existing Project Names

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all,
Can anyone give me a quick simple way to change the name of an existing project. Actually it doesn't even need to be quick or simple. Any way would be fine. I'm a firm believer in re-using code, just like you, and usually copy previous projects I've worked when I start a new project. For example, I created an SMTP server and want to use that project to create a POP server. Because I called the project SMTP server the MFC created files were SMTP Server.cpp, and SMTP ServerDlg.cpp, etc. I want these change these files to reflect my new project, POP SeverDlg.cpp, etc. I could start a whole new project, copy the files I used in SMTP server, rename them to POP server, then import them into the project but that's a pain and I would still need to add the dialog, DDX, and DDV variables because the dialog is stored in the .rc file. Not easy.

Here is what I tried:
I copy all the files over to a new directory. Then I re-named all the SMTP file to POP Server.cpp, POP Server.h, etc. I then clicked on the *.dsw to open my project. Now I have no resources at all. No dialog, icons, the whole resouce tab in the workspace view is gone? This is no big deal because I made a back up but I would like to change the name of all the file and the project because it gets very confusing when I'm working on both at the same time.

Any ideas.

Thanks,

Brother C
 
> Any ideas.

Have you considered making it a custom App Wizard? I've never done it but I know people that have and they loved the feature.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top