473,503 Members | 9,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to move a Visual C++ Workspace

I have several MS Visual C++ workspaces that I need to move to another
folder, i.e. I have some workspaces in subdirectories of D:\Prog1\Work, and
I need to transfer them to subdirectories of T:\Prog2\Demo. Doing this
turned out to be trickier than I thought.

Visual Studio has the "Save As..." menu item for individual files, but the
program provides nothing like "Save As..." for Projects or Workspaces. I
tried the brute force approach of simply copying the directories to the
destination, but the copied workspaces did not build, due to complaints
about the program database. I tried deleting the program database files (the
ones with the extension *.pdb and *.idb) in hopes that they would be
recreated by the build procedures. That didn't work, same complaint about
the program database. I opened the program database files and saw that they
did include the full path names for the various project sources. Moreover,
the program database files are binary, so one cannot simply edit the path
names without messing things up. (Yes, I tried it. No, it didn't work.)

At times like this, I envy the Gnu C++ folks. I cannot believe that there is
no simple way to do this! Is there some tool for moving Visual C++
workspaces? Is there some way to repair the program databases? Any help you
could provide would be much appreciated.

Jul 19 '05 #1
2 3840
"Frank J. Lhota" <NO*************@rcn.com> wrote in message
news:bm**********@bob.news.rcn.net...
[...]
Any help you could provide would be much appreciated.


My help is to suggest checking out one of the Microsoft
newsgroups for your compiler, as they are most likely to be
able to answer your questions.

Dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/2003
Jul 19 '05 #2
Hi,

Funny, at one time I too had problems copying the workspaces, I noticed the
path was contained in one of the files. However a few months ago I build a
new system copied everything over from the old system (new drive letter, new
OS and new path) and I could compile every project without a problem.

I did clean everything out though. You should be able to do this using the
(I believe Tools Batch or Tools Clean menu, I forgot the exact name) and it
will delete most (maybe all) of the files for you. There are a lot of files
you can delete *.ilk *.pch (once I had a list of all of them but
unfortunately that list is on another system) I think in the documentation
(look for ilk or something) there is a description of which files are
generated and thus save to delete.

Try the batch-clean first if that doesn't work clean the directories out by
hand (don't really believe the latter is necessary).

Regards, Ron AF Greve

"Frank J. Lhota" <NO*************@rcn.com> wrote in message
news:bm**********@bob.news.rcn.net...
I have several MS Visual C++ workspaces that I need to move to another
folder, i.e. I have some workspaces in subdirectories of D:\Prog1\Work, and I need to transfer them to subdirectories of T:\Prog2\Demo. Doing this
turned out to be trickier than I thought.

Visual Studio has the "Save As..." menu item for individual files, but the
program provides nothing like "Save As..." for Projects or Workspaces. I
tried the brute force approach of simply copying the directories to the
destination, but the copied workspaces did not build, due to complaints
about the program database. I tried deleting the program database files (the ones with the extension *.pdb and *.idb) in hopes that they would be
recreated by the build procedures. That didn't work, same complaint about
the program database. I opened the program database files and saw that they did include the full path names for the various project sources. Moreover,
the program database files are binary, so one cannot simply edit the path
names without messing things up. (Yes, I tried it. No, it didn't work.)

At times like this, I envy the Gnu C++ folks. I cannot believe that there is no simple way to do this! Is there some tool for moving Visual C++
workspaces? Is there some way to repair the program databases? Any help you could provide would be much appreciated.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2369
by: Analyst | last post by:
I'm trying to figure out how, from the Visual C++ GUI, to run a precompiler on my .SQC files, and create the corresponding .C files. I know about the DB2 command window, and how to do a DB2 PREP...
0
1698
by: Ryan | last post by:
Hello, HELP! I have TWO questions: First, I am trying to execute a SQL pass-through query in Access VBA. According to MSAccess help, I should be able to use the following syntax after...
0
891
by: Kevin | last post by:
Is it possible to open a visual c++ project, written in visual studio .net, in visual studio 6.0? Is there some program or utility that will convert the project from the newer version of visual...
3
1216
by: Charlie1 | last post by:
I am a student taking c++ programming I purchased a program Visual Studio.net (2003 ver), The college is using visual C++ 6.0. How can I use my porgram to write programs in Ms 6.0. Do I have to...
4
4621
by: rohinichandrap | last post by:
Hi , I have quite a few questions about Visual Studio :Net 2003 and clear case Could anyone please help me with the answers. I have converted a workspace abc.dsw from visual studio 6 to...
56
2764
by: paz | last post by:
Hi, Does anybody know how to start new C project with microsoft visual c++? I've created a file, but Tools-Run is inActive. How can I make it Active?
8
1880
by: Doron Farber | last post by:
Hi All, How can I Move the Server explorer window to the left. When ever I double click on the Server explorer top window it goes to the bottom of the IDE. Thanks, Doron
2
1740
ShawnRR
by: ShawnRR | last post by:
Hi, I am learning C using VS2005 and I can't get this code to work. It is out of the book but it does not compile and run. What am i doing wrong? #include <stdio.h> int main (void) {
4
2105
by: Richard_Martineau | last post by:
Hello All I wonder if anyone can advise me or has done similar to the following? Basically I've downloaded the Python 2.5.2 source code that builds with Visual Studio 6.0. I've built Python...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.