Solved

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

Posted on 2000-03-05
2
219 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
ID: 2585428
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
ID: 2585664
I managed to get this working.

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

943 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

10 Experts available now in Live!

Get 1:1 Help Now