![]() |
| | #1 |
| Registered User Join Date: Oct 2007
Posts: 17
| Creating a executable file I just wanted to know how to create a executable file of your program using visual studio. |
| stewie1986 is offline | |
| | #2 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,381
| |
| brewbuck is offline | |
| | #3 |
| Registered User Join Date: Oct 2007
Posts: 17
| 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 |
| stewie1986 is offline | |
| | #4 |
| and the Hat of Guessing Join Date: Nov 2007
Posts: 8,740
| 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.) |
| tabstop is offline | |
| | #5 |
| Registered User Join Date: Oct 2007
Posts: 17
| Thanks for the reply, its just this is a list of what the teacher has asked us to submit for our programming assignement
I think my understanding of what a executable file is wrong |
| stewie1986 is offline | |
| | #6 |
| and the hat of sweating Join Date: Aug 2007 Location: Toronto, ON
Posts: 3,120
| 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. |
| cpjust is offline | |
| | #7 |
| Chinese pâté Join Date: Jul 2007 Location: Canada
Posts: 406
| 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. |
| foxman is offline | |
| | #8 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| 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!
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #9 |
| and the hat of sweating Join Date: Aug 2007 Location: Toronto, ON
Posts: 3,120
| I just click the Build button and just use keyboard shortcuts for debugging F10, F11... |
| cpjust is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Writing Problem | polskash | C Programming | 3 | 02-13-2009 10:47 AM |
| Formatting the contents of a text file | dagorsul | C++ Programming | 2 | 04-29-2008 12:36 PM |
| Can we have vector of vector? | ketu1 | C++ Programming | 24 | 01-03-2008 05:02 AM |
| help with text input | Alphawaves | C Programming | 8 | 04-08-2007 04:54 PM |
| Simple File encryption | caroundw5h | C Programming | 2 | 10-13-2004 10:51 PM |