Solved

Renaming a Win32 Visual C++ 6.0 to something else without messing-up all the files, etc.

Posted on 2000-03-05
2
218 Views
Last Modified: 2010-04-02
I have a Win32 project I just finished in Visual C++ 6.0.

I want to rename the following files:

MENUDEMO DEP
MENUDEMO DSP
MENUDEMO DSW
MENUDEMO MAK
MENUDEMO RC
MENUDEMO NCB
MENUDEMO PLG
MENUDEMO APS
MENUDEMO OPT
MENUDEMO CPP

To p3tknowlton.WHATEVER

Now, I know that it is not as simple as just RENAMING these files.  There are associations inside these files and if I just arbitrarily start renaming files BAD THINGS will happen.

What is a really easy way to rename a Project and all relevant files to SOMETHING ELSE?

I assume doing this from Inside Visual C++ is the safe way to go...but I don't know how to proceed.  None of the Save or Save As... options under the File menu look like they will do what I want.

Thanks so much for any help!

Tom
0
Comment
Question by:knowlton
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 50 total points
Comment Utility
Unfortunately, VC++ provides no automation to make this task easier.

You need to:

1) Rename the files.
2) Search throughout the project for #include directives. Fix 'em.
3) Remove the old files, by name, from your project and re-add the new ones.

If you're using MFC, you will need to:

4) Delete the *.CLW file
5) Recreate the CLW file in the ClassWizard.

..B ekiM
0
 
LVL 5

Author Comment

by:knowlton
Comment Utility
I managed to get this working.

Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now