Monday, July 27, 2009

HOw can i convert .EXE to a .CPP file?

Simply put: you can't.

HOw can i convert .EXE to a .CPP file?
you might be interested in these two threads:


http://groups.google.com/group/comp.os.m...





http://groups.google.com/group/alt.comp....








basically no.


you lose a lot of the original c++ code.





you can get it to assembler, and some form of valid c code - but... read the forums their short enough.
Reply:That would be really nice if it could be done quickly and easily for checking out a program's runtime errors. Unfortunately, you can't really revert an executable all the way back to C++ source. You can use a disassembler to get a rough listing of the assembler source equivalent and perhaps work that backward into a sort of close listing of C++ by hand, but converting the executable is always more work than writing your own version, IMHO. The problem arises because the variable names, class names, function names and all comments and line numbers are left out of the final executable most times in order to help reduce the size of the file. Without this kind of information from a program, you will rarely be able to understand the intent and logic of the structures. Some very, very experienced low level programmers can and occasionally have to either reverse engineer a piece of code or try and find a runtime error too subtle for other debugging procedures to reveal. But this takes a very long time, lots and lots of experience with assembler, machine code and other arcane bits of knowledge that few in the industry pick up nowadays in the course of normal work. Sorry, no magic bullet on this one.
Reply:An exe file is an executable file. A file that runs and does something. Converting it into a ccp file would render it useless.

greeting cards

No comments:

Post a Comment