Thread: Problem

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    1

    Problem

    im using dev-c++ on 32 bit vista and i cant seem to get the exe to work.
    i get the cpp file and when i try to run it i get a small black window that instantly closes by itself.
    since dev-c++ hasnt been updated could it be that the compilor it uses is not vista compatible??

    also, im a complete fool with microsoft visual 2008. can anyone tell me how to write a source file and just execut e it?

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    This sounds like a common problem. The exe is working correctly, it is just closing when the program completes.

    Check the FAQ for how to make your program wait for a keypress.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    On the VC++ Problem, you need to create a new project, then choose Win32 application, then when you get the next box up. click settings and click "empty project" ( this disables the pre-compiled headers ) then click create. When it has created your empty project, you need to create a new item for the project, which you can select which sort of source file you want, just choose C++ and name in "main". After that, you are away.

    You can add however many files you wish by repeating the last step.
    Double Helix STL

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    With Visual Studio, you can just run your program with CTRL+F5 to make the box stay open.
    Otherwise you can set a breakpoint (F9) at the end of your program and run with F5.
    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. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM