English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2007-03-16 07:50:15 · 4 answers · asked by jojorockman 2 in Computers & Internet Programming & Design

4 answers

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.

2007-03-16 08:12:10 · answer #1 · answered by Coosa 2 · 0 0

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.

2007-03-16 07:58:14 · answer #2 · answered by Buck Boy 2 · 0 0

Your header record could be compiled as an prolonged merchandise library of your exe record. this means that whenever you run chart.exe, it is going to seek for its prolonged library that are your header information. to unravel this, verify your header decleration.

2016-12-14 20:56:17 · answer #3 · answered by Anonymous · 0 0

use bloodshed or marcosoft to look at your source code

2007-03-16 07:53:55 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers