Thread: Executable file not working

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    6

    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
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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...

    --
    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.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    6
    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
    Location
    Toronto, ON
    Posts
    3,545
    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
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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, 03:53 AM
  3. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM