C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2007, 05:33 PM   #1
Registered User
 
Join Date: Oct 2007
Posts: 17
Creating a executable file

Hi
I just wanted to know how to create a executable file of your program using visual studio.
stewie1986 is offline   Reply With Quote
Old 12-10-2007, 05:46 PM   #2
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,381
Quote:
Originally Posted by stewie1986 View Post
Hi
I just wanted to know how to create a executable file of your program using visual studio.
Press F7?
brewbuck is offline   Reply With Quote
Old 12-10-2007, 05:47 PM   #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   Reply With Quote
Old 12-10-2007, 05:50 PM   #4
and the Hat of Guessing
 
tabstop's Avatar
 
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   Reply With Quote
Old 12-10-2007, 05:59 PM   #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
  • source code files(s)
  • The executable file
  • flowchart
  • description of variables

I think my understanding of what a executable file is wrong
stewie1986 is offline   Reply With Quote
Old 12-10-2007, 06:20 PM   #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   Reply With Quote
Old 12-10-2007, 06:21 PM   #7
Chinese pâté
 
foxman's Avatar
 
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   Reply With Quote
Old 12-11-2007, 12:00 AM   #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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 12-11-2007, 12:26 AM   #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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 10:16 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22