Solved

MSVC++ V5  DEBUGGER WON'T EXECUTE

Posted on 1998-12-09
5
292 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

Independent Software Vendors: 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

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…
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

690 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