Creating a executable file

This is a discussion on Creating a executable file within the C Programming forums, part of the General Programming Boards category; Hi I just wanted to know how to create a executable file of your program using visual studio....

  1. #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.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    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?

  3. #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

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    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.)

  5. #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

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    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.

  7. #7
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    404
    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.

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,550
    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!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I just click the Build button and just use keyboard shortcuts for debugging F10, F11...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 09:47 AM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM

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