Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI
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 17-Dec-12 18:51pm
Edited 17-Dec-12 20:43pm
v2
Comments
Mohibur Rashid at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Nope, you can't. Not without buying an expensive tool that creates unreadable code
  Permalink  
Comments
Albert Holguin at 19-Dec-12 16:32pm
   
More like... yes... but it's unreadable and unreliable to decompile... I like your answer though... +5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

http://www.tek-tips.com/viewthread.cfm?qid=354249
 
read the discussion. it may help you.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100