Hi
I just wanted to know how to create a executable file of your program using visual studio.
Hi
I just wanted to know how to create a executable file of your program using visual studio.
Hi, sorry I wasn't clear, is it possible to create a stand alone exe file, where you can just click it and it will run the the program, in visual studio
The answer is still "press F7".
(I don't think you can get an .exe to run inside Visual Studio, if that's what you mean? .exe files are run by Windows.)
Thanks for the reply, its just this is a list of what the teacher has asked us to submit for our programming assignement
- source code files(s)
- The executable file
- flowchart
- description of variables
I think my understanding of what a executable file is wrong
After you Press F7 (or click the Build button in the toolbar) look in the directory where you saved your Visual Studio project and you'll see your .exe file in the Debug or Release directory.
On MSVC++ 6.0, F7 will build the executable for your current project. If you want to run it (without debugging), press Ctrl+F5. If you want to run it in debugging mode, press F5.
Note that you should take a look at the "Build" menu. Everything is there.
F7 works in MSVC6, but not later unless you specifically tell the studio you want the MSVC6 keyboard scheme. Otherwise I believe it's Ctrl+Shift+B or something (I use MSVC6 scheme).
The executable file is the program itself, that you've built. Your code doesn't magically run from inside the IDE or anything - it's your exe that's running!
I just click the Build button and just use keyboard shortcuts for debugging F10, F11...