Executable file not working

This is a discussion on Executable file not working within the C Programming forums, part of the General Programming Boards category; I have a program i made and when i compile it, it works perfectly but the .exe file it creates, ...

  1. #1
    Registered User
    Join Date
    Feb 2009

    Executable file not working

    I have a program i made and when i compile it, it works perfectly but the .exe file it creates, doesnt work... I run that file and it runs but doesnt do anything...

    I use FreeConsole() so there isn't a window open when it runs as it is a program that runs in the background so I don't know what it is doing. The .exe file does free the console but it doesnt do anything else. If you need more information then just ask.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Perhaps you could have a switch or setting that disables the FreeConsole part, and then you could see what it's doing?

    Alternatively, log to a file or use a debugger...

    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.

  3. #3
    Registered User
    Join Date
    Feb 2009
    But the console actually does nothing, its basically a keylogger which registers when you press a key and writes it to a .txt file but the .exe wont create the file or send any of the characters.

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Toronto, ON
    Sounds like something that might get this thead closed soon.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  5. #5
    Super Moderator
    Join Date
    Sep 2001
    Sounds like you're right.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 04:53 AM
  3. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 01:36 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM

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