Thursday, July 30, 2009

C++ and its exe file?

If I have only the .exe file written from C++, how can view its source code?

C++ and its exe file?
If the source has been compiled with the option enabled to generate debugging information, then you can open the executable file with your favorite debugger such as GDB, VS C++ Debugger, Borland Debugger ...etc.


Usually, most compilers disable this option by default unless the user enabled it manually.
Reply:use bloodshed or marcosoft to look at your source code
Reply:Generally you can't since it's not easy to decompile an exe like you can with a java .class file for example. However, if it is a debug version, use a hex editor and a disassembler to get clues about the construction.


If you are a fairly competent programmer, you should be able to figure out what the exe does and uses the information from the disassembler to deconstruct the inner workings.


No comments:

Post a Comment