Converting .exe to .cpp or .c

This is a discussion on Converting .exe to .cpp or .c within the C Programming forums, part of the General Programming Boards category; Is there a way to take a executable file, and turn it into source code you can read and edit? ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    25

    Converting .exe to .cpp or .c

    Is there a way to take a executable file, and turn it into source code you can read and edit?

    I looked on my compiler options, and it has nothing like this it seems.

  2. #2
    ___
    Join Date
    Jun 2003
    Posts
    806
    Not that I know of. Otherwise people could break down games and steal source.
    "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."

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    Re: Converting .exe to .cpp or .c

    Originally posted by OmnipotentCow
    Is there a way to take a executable file, and turn it into source code you can read and edit?

    I looked on my compiler options, and it has nothing like this it seems.
    There are programs that do this. Badly.

    Think of it as trying to "unbake a cake".

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    25
    Ya, now that i really think about it, it's pretty much the same as pirating software or what not.

    Oh well, just a thought i had when reading through this book.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by OmnipotentCow
    Ya, now that i really think about it, it's pretty much the same as pirating software or what not.
    Yes and no. Most programs come with data files that have graphics and what not that would be shipped with the executable. So while with most programes, if you could decompile them accurately and get the source code, you still wouldn't have all of the needed data to get a working program (as you would if you "pirated" it).

    But I admit it would be handy, fun even, to have the source to a few programs to tweak them or just to see how they did things.

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    Originally posted by quzah

    But I admit it would be handy, fun even, to have the source to a few programs to tweak them or just to see how they did things.
    Isn't that what disassemblers are for?

  7. #7
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    yeah disassemblers output assembly instructions which are different for each system and not the easiest thing to read.

  8. #8
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    i think there is a program that takes that assembly code, and translates it to c/c++... badly
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  9. #9
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    code warrior can do it I think.
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  10. #10
    Registered User
    Join Date
    Jun 2003
    Posts
    21
    check this file it has a prog to do what u asked for
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    Jun 2003
    Posts
    21
    put the contents of e2c1.zip & e2c2.zip in a folder and run the program
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I'm having a hard time making a .exe from a .cpp
    By manugarciac in forum C++ Programming
    Replies: 10
    Last Post: 05-13-2009, 04:40 PM
  2. converting (.cpp) instructions to (.c) ones
    By sunshine in forum C Programming
    Replies: 10
    Last Post: 04-15-2008, 09:18 AM
  3. functions in .C file not recognized in .CPP file
    By tooKool4School6 in forum C++ Programming
    Replies: 1
    Last Post: 06-02-2006, 10:30 AM
  4. Changing program from .cpp to .exe
    By BIt_toRreNt in forum C++ Programming
    Replies: 6
    Last Post: 02-16-2005, 03:24 PM

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