1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Cant open EXE files!?!?!

Discussion in 'Other PC Software' started by craze3, 2005/01/05.

Thread Status:
Not open for further replies.
  1. 2005/01/05
    craze3

    craze3 Inactive Thread Starter

    Joined:
    2005/01/05
    Messages:
    1
    Likes Received:
    0
    Hey guys im new to this forum. I recently started C++ and I have not been able to run any of my exes!! I cannot run my friends' either! On my school computer i can run them and they all work fine. Im using windows xp ofcourse! But in school i use windows 2000. As soon as i open the EXE file, comand prompt opens and then closes in half a second. I wont be able to test any of my codes or run any files this way! If i ever download a setup or install exe of the internet for some program, it runs perfectly. Why does homemade exe close quickly on my computer? How can i ifix it?
     
  2. 2005/01/05
    BenMcDonald[MS]

    BenMcDonald[MS] Inactive

    Joined:
    2004/12/14
    Messages:
    228
    Likes Received:
    0
    because you are writing 'console apps' and trying to run them in a gui. The program is running, then exiting quickly, which closes the temporary window.

    You need to open a CMD prompt, and run your programs from there.
     

  3. to hide this advert.

  4. 2005/01/06
    Abraxas

    Abraxas Inactive

    Joined:
    2002/08/16
    Messages:
    2,361
    Likes Received:
    3
    Do you have SP2 installed? You may need to add the exe's to the exceptions list for DEP.

    Control Panel » System » Advanced tab » Performance Settings button » Data Execution Prevention tab.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.