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
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