Visual C++, Executable for Debug Session dialogue on old project

D

Dr. Leff

I am getting the error message dialog, Executable for Debug Session
"Please specify the name of the executable file to be used for
the debug session."

Inspection of the debug subdirectory, I find all the obj files. I do
not
see any executable.

I am trying to compile and run an old Visual Studio 6.0 Project that
I retrieved from the net. It is Windows Program. That is, it has a
Winmain.cpp file with a WinMain subroutine, and a WndProc procedure.
I got it to compile and obviously create the object files.
(I wrote to the original developer. He responded nicely and quickly
but
unfortunately and undestandably,
he has moved on to other projects and does not have time to work with
me on
this problem.)

I google searched and tried several hints but nothing changes
anything.

I am now using Visual Studio 2005!

Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||
(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX:
309-298-2302
 
R

Ron AF Greve

Hi,

Right click project.
Choose properties
Configuration->General

Configuration type

Have you selected executable?

If so you might want to try to rebuild the whole thing (should of course
produce no errors for an executable to be generated.

Regards, Ron AF Greve

http://informationsuperhighway.eu
 
A

AnonMail2005

I am getting the error message dialog, Executable for Debug Session
"Please specify the name of the executable file to be used for
the debug session."

Inspection of the debug subdirectory, I find all the obj files.  I do
not
see any executable.

I am trying to compile and run an old Visual Studio 6.0 Project that
I retrieved from the net.  It is Windows Program.  That is, it has a
Winmain.cpp file with a WinMain subroutine, and a WndProc procedure.
I got it to compile and obviously create the object files.
(I wrote to the original developer.  He responded nicely and quickly
but
unfortunately and undestandably,
he has moved on to other projects and does not have time to work with
me on
this problem.)

I google searched and tried several hints but nothing changes
anything.

I am now using Visual Studio 2005!

Dr. Laurence Leff  Western Illinois University, Macomb IL 61455 ||
(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX:
309-298-2302

If you compile and linked in VS w/o any errors that's a good start.

To run a program within VS, you need to do two things:

1. Select the project you want to run when you start debugging. Right
click on the VS solution and select the project as startup/default (I
forget the terminology they use). When you exit, the project name
will be bold. This is necessary because VS solutions can contain many
projects each of which can produce an executable program.

2. Enter the command line of the executable you want to run in the
projects debug command line. It's in the projects properties (right
click on the project and select properties). By looking at the name/
location of the output executable, you should be able to figure out
what you need to type in the debug command line (it should be the
same).

(1) above is saved within the solution file. (2) is not saved within
the project - it's saved in some local file, so each developer will
have to enter this seperately.

Also, I suggest upgrade to a newer version of VS as soon as possible.

HTH
 
R

Ravi Kumar Gupta

Hi,

Right click project.
Choose properties
Configuration->General

Configuration type

Have you selected executable?

If so you might want to try to rebuild the whole thing (should of course
produce no errors for an executable to be generated.

Regards, Ron AF Greve

http://informationsuperhighway.eu

thanks this worked for me..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top