Thread: visual c++ 2005 express edition compiler

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    visual c++ 2005 express edition compiler

    im writing a simple program

    Code:
    int main()
    {
    std::cout << "hello";
    }
    now im curious how exactly using this compiler can i run the program? theres a "Start Debugging" which has a play button beside it which leads me to believe thats how you run the program, but its grayed out, help!

    edit: oh and the start without debugging option is grayed out as well.
    Last edited by rs07; 09-23-2008 at 10:18 PM.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    i dont have this installed anymore so i dont remember exactly. however, did you go through the process and create a new "project"? if you just opened or created a new .cpp file you wont be able to "run" it.

    also the play button, as you said, is for debugging. debugging isnt the same as "running". there should be "build" or "compile" buttons in the same menu as the debugging options. you would build/compile then run the .exe file created in the "Debug" or "Release" folder of your project (depending on which "build mode" is selected, i think release is the default). if your making a GUI project you should be able to double-click the created .exe file, otherwise run it from a command line (cmd.exe).

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Try pressing F7 to build your application. If that gives you an error (such as "No project defined") or "nothing happens", then nadroj is probably right in that you haven't got your source file in a project.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    The code should look like:
    Code:
    int main()
    {
        std::cout << "hello";
    }
    ...with proper indenting.
    The IDE does it for you, so don't fight it!
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 05-28-2008, 02:54 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Visual Studio Express for free
    By Frobozz in forum C# Programming
    Replies: 2
    Last Post: 04-29-2006, 09:59 PM
  4. Visual C++ 2005 Express Edition: Breakpoints not working
    By Bird Killer in forum C++ Programming
    Replies: 7
    Last Post: 03-31-2006, 10:38 AM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM