Thread: How do I open a .exe file with C++?

  1. #1
    Registered User
    Join Date
    Dec 2007
    Delhi, India

    Question How do I open a .exe file with C++?

    It is a program that I had made but have lost its code....
    I have its .exe file but it doesn't have an " open with.." option....


  2. #2
    Join Date
    Oct 2007
    Inside my computer
    You mean you have a program, but you don't have its source? And you expect to open that program within some program to get the source?
    Sorry to disappoint you, but that can't be done. If you lost the source, then unfortunately for you, there's nothing you can do rather than rebuild the source from scratch (unless you have a backup of the source). Now rebuilding it is an entirely different story, though.
    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.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Yes, the process of "reverse compilation" has been discussed before. There is really no simple way that you can do that. That's like taking a cake and from it produce eggs, flour sugar and milk - it's not possible. You can, given sufficient resource, figure out what the code does and reverse engineer the solution, but that's not a simple process either.

    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.

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Toronto, ON
    You can convert it to Assembly code, but even then there wouldn't be any comments or useful names, so it would still be virtually unreadable to Humans.

  5. #5
    Registered User
    Join Date
    Dec 2007
    start coding man!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM