Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can I exe file made in Microsoft Visual C++ decompile into source code.
Can I decompile exe file in Microsoft Visual C++ into source code?
If it is possibly possible, please, tell me how to do so.
Thanks
Posted
Updated 17-Dec-12 20:43pm
v2
Comments
Mohibur Rashid 18-Dec-12 2:46am    
The fact is you would get faithful extracted assembly code. but if you wish to get c/c++ code that might not be possible.

Nope, you can't. Not without buying an expensive tool that creates unreadable code
 
Share this answer
 
Comments
Albert Holguin 19-Dec-12 16:32pm    
More like... yes... but it's unreadable and unreliable to decompile... I like your answer though... +5
VC++ compiles the code into binary format which you never decompile like we are doing with .Net.

with .Net its entirely different topic.

the answer is BIG NO
 
Share this answer
 
http://www.tek-tips.com/viewthread.cfm?qid=354249

read the discussion. it may help you.
 
Share this answer
 
By the way, you also have to ensure that it is legal to do so as it would generally not be the case for commercial software.

If it is not you that has written the original software, then except if it is explicilty written than you are allowed to reverse engineer the program, you should not doi so before asking the permission to the original author.

So in practice, you should only try it on your own code... but if it is your own code, then why not use the original code instead.

Anyway, you will never get code that somehow ressemble C++ code as much information is lost when the executable is produced.
 
Share this answer
 
Hi, Check more discussion: http://www.cplusplus.com/forum/windows/17241/[^]
 
Share this answer
 
As Phillipe Mori said: if you don't have explicit permission to do such a thing, it is most likely illegal. If you do have permission, then whoever gave you the permission normally should have no problem providing you with the source code.

Assuming that you do have the permission but not the source code (dog ate the hard disk and no backups?), the best you can hope for is "readable" Assembler, not C/C++. While it's technically possible to automatically convert Assembler code into C/C++, that wouldn't greatly increase readability. So, unless you can read and understand Assembler, that wouldn't be a great help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900