Peter said:
What you are asking is how to turn a hamburger into a cow.
Wrong. He is asking how to create a source file from an executable
code. This is far different than turning hamburger into a cow.
It is possible to create source code from an executable. The
probability of it looking like the original source code is
extremely low, so low that you would win a lottery many times
over.
It is not possible to produce reasonable C++ source code from an .exe file,
even if you know exactly which compiler and the compiler settings (e.g.
optimization) were used to create the executable. Simply too much
information is lost in the compilation process.
Reasonable is in the eye of the beholder. I agree that the
generate source code will be difficult to understand.
However, I think many newbies should attempt the project just
so these posts will stop.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book