• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

C++ Decompiler?

Some of my software has recently been corrupted by an unknown cause, and I would like to know if there are any C++ decompilers out there, so I can fix the code.
0
Noose215
Asked:
Noose215
  • 2
1 Solution
 
feenixCommented:
The short answer: no, there isn't.
The longer: it is quite impossible to transform a binary executable into C++, because there is not necessarily any information about the actual variables etc. There might be some programs that try to do that, but I've yet to see a working one.
0
 
nietodCommented:
There certainly are decompilers that will prodiuce C code.  Horrible C code, but C code none-the-less.  There may be some that produce C++ too.  Depending on the C++ implimentation, then may be able to tell when functions are member functions and may be able to detect exception information (to some extent).  They probably won't recreate templates, but instead seperate functions/classes.   But you can be pretty sure that the ouput is going to be nearly incomprehensible.
0
 
Noose215Author Commented:
Thank you, feenix, for not just answering, but also explaining.
0
 
Noose215Author Commented:
Just as a follow up, there are actually a few C++ decompilers that have worked quite well for me. Lesson of the day to the "expert" who said there isn't: what can be done can ALWAYS be undone.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now