Thread: .exe problems

  1. #1
    ___
    Join Date
    Jun 2003
    Posts
    806

    .exe problems

    Well i came to you guys a while ago with some compiler problems and I finally got that sorted out. I found a good C compiler (Miracle C). And I finally made a exe file. Well when i run it it brings up a black box then dissapears when it should post a message. What am I doing wrong?

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    ___
    Join Date
    Jun 2003
    Posts
    806
    Why thanks for giving me a link to a huge site when I just need a 2 sentence answer to what im doing wrong.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    ___
    Join Date
    Jun 2003
    Posts
    806
    Originally posted by Hammer
    and the other one that goes with it
    I ended up navagating towards this one. Im more familiar with dos promt than the input boxes as of now so Im going this for a while.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  7. #7
    Casual Visitor
    Join Date
    Oct 2001
    Posts
    350
    A pure dos app *should* have a pif file once the exe is run once... at least in Win9x Right click on that and under properties, uncheck close on exit. You can also use ALT+Enter to force full screen text mode. Use again to toggle to windowed mode.... all of that is assuming that you're using windows as your OS.

    The faqs already provided are good for explaining how to handle that in your program.
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

  8. #8
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Originally posted by ronin
    A pure dos app *should* have a pif file once the exe is run once... at least in Win9x
    Where do you get this? I've written many DOS apps in Win9x and if they all created a .pif, I would have stopped writing them! You must create a shortcut to get a .pif file, or copy the .exe to your desktop.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fopen can't open .exe?
    By fanoliv in forum C Programming
    Replies: 11
    Last Post: 04-05-2011, 03:24 PM
  2. Replies: 13
    Last Post: 12-09-2008, 11:09 AM
  3. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  4. Problems running compiled .exe on other machines.
    By Troels Leth in forum C++ Programming
    Replies: 39
    Last Post: 05-09-2008, 05:30 AM
  5. Problem creating .exe files
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-22-2002, 02:25 PM