Solved

MSVC++ V5  DEBUGGER WON'T EXECUTE

Posted on 1998-12-09
5
288 Views
Last Modified: 2010-04-02
I have new install on a second machine. I copied Workspace
and Project info from old computer into corresponding
directory of the new install. I can recompile the project
on the new computer, but when I hit 'F5' to start debug , I get the
message: "Can not execute. Invalid Directory .Win32 Error 267" . This is followed by a second message:
"Can not execute program." When I locate the newly built
executable, it does execute properly. It seems to me
that the debugger itself will not run. On the Old machine
MSVC was on D: on the new machine it is on C: .
I don't see the answer in Project - Settings .
The View - Debug Windows choice shows only grayed
out choices for CallStack, Memory etc.
 What is wrong here.
0
Comment
Question by:mbarron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Accepted Solution

by:
arunm earned 50 total points
ID: 1179775
Visual C++ uses sometimes uses absolute path names to identify the location of project data. This is why the project wont compile. There are 2 possible solutions:-

1) Change the project paths to be relative. There are several ways to do this and can be tricky.
2) A easier solution is to create a drive mapping to fix the problem. Using explorer create drive d: as a re-mapped drive c: Thus c: and d: will be the same drive. The program should then compile.
 
0
 

Expert Comment

by:McCreary
ID: 1179776
On the Visual C++ menu go to project/setting, hit the DEBUG tab and check the drive and path of the executable.

Also go to menu tools/options, hit the directory tab and make sure all your libraries, MFC source, includes,  everything is set to the new drive.
0
 
LVL 1

Expert Comment

by:The_Brain
ID: 1179777
Check your menu find the
options...

go to links, and you will see include in a combo box.  there you click to see the various paths, just enter the path that your other projects are in.  This way you have the least chance of stuffing up the Drives. :0

0
 
LVL 1

Expert Comment

by:The_Brain
ID: 1179778
Check your menu find the
options...

go to links, and you will see include in a combo box.  there you click to see the various paths, just enter the path that your other projects are in.  This way you have the least chance of stuffing up the Drives. :0

0
 

Author Comment

by:mbarron
ID: 1179779
Many Thanks,
Project,Settings,Debug,Working Directory was non-existant
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixing C++ & C# in Vis Studio 2013 7 239
computer science syllabus 3 102
White board coding practice 3 95
trigs fail! I thought I knew how to do trignometry 3 83
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

733 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