Question regarding Visual Studio 2005

Discussion in 'Programmer's Corner' started by skysurf, Apr 24, 2007.

  1. skysurf

    Thread Starter Member

    Oct 20, 2005
    14
    0
    Hi,

    I have a C program (command prompt application) which I am compiling using Visual Studio 2005 Standard Edition. Here is my dilemma:

    After I successfully build the application without errors, I am able to run the program and step through using breakpoints (if needed) via the menu command Debug --> Start Debugging (F5).

    However, if I try to run the program without debugging via the menu prompt Debug --> Start Without Debugging (Ctrl+F5), the program doesn't run and all I see is the command prompt window that says 'Press any key to continue.'

    Do I need to change anything in my Project/Solution settings inorder to run the executable without debugging????

    Would appreciate any help!!!!
     
  2. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Most probably because the program already terminated (it did run), so you were left with the remnant command prompt window. You could run it from a command prompt window manually or put a stop point, like a getch() or scanf(), along the program flow, like at the end before exiting.
     
Loading...