Compiling

Hi, I recently downloaded the Visual Studio Express Edition, and I am unable to compile the file to run it, or at least I do not know how to use the file once created. I was wondering how I would test out a program/file once it is debugged. Thanks everyone for the help!


Answer this question

Compiling

  • doublep03

    Can you describe more what you are doing and your expected results

    To compile an application you will need to load it as a project, build it and then run it.



  • apalumbi

    F5 runs the application

    CTRL+F5 is usable if it is a console application, it will not close the output window when the application is finished, so you can study the output.



  • Acky

    Don't worry that new 'F lock' key even caught me out. When I got my new machine at home (with of course a new keyboard) I spent ages trying to workout why F5 caused the File Open dialog to appear instead of starting the debugger - I even started to suspect a wiring problem in the keyboard!

  • wufei

    Actaully, as it turned out I had "f lock" on(it's a new keyboard) so that's kind of embarrasing, anyway, it works now, thanks everyone!
  • hongkwokkwok

    I've tried that, when I press f5 or ctrl+f5 it opens up the open file window.

  • Jithendrian

    Newer keyboards make you feel like you are operating a space craft! :)



  • mengrie

    Well, I am now learning C++ at the moment and I would like to have my porgrams to open so I can test to see what the outcome is. I have "Built" the porgrams but I can not seem to be able to "Run" them, pretty much I am not sure were the "run" button is.

  • SveinErik

    Click View + Output and check for any error messages from the compiler. Next, click Debug + Start Debugging to start the program.


  • Compiling