tags:

views:

152

answers:

3

I am able to successfully build solution. but i keep getting this when i try to start debugging or executing it. any suggestions why this might be the case?

update: i fixed the issue. I just recreated the proj with empty files and then just rebuild and it worked. one question: when i start the program (its a console app) how do i stop it from disappearing when i try to enter any input from within vs2008?

thanks

A: 

Make sure the debug command

(Properties > Configuration Properties > Debugging > Command)

is pointing to the output file built by your selected configuration.

(Properties > Configuration Properties > General > Output Directory),

(Properties > Configuration Properties > Linker > General > Output File)

Adam
looks like even though the build was a success the binary was not created. can that happen that a program compiles and links yet fails to produce a bin exe?
What type of project are you building?(Properties > Configuration Properties > General > Configuration Type)
Adam
A: 

add a break point to the end of the program or wait for a keyboard hit

yan bellavance
A: 

The classic way to keep a console app from exiting is to add another input query so the program pauses until enter is hit.

Ben Mathews