Solved

C++ Decompiler?

Posted on 2000-03-11
4
342 Views
Last Modified: 2010-04-10
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
Comment
Question by:Noose215
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
feenix earned 20 total points
ID: 2609871
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
 
LVL 22

Expert Comment

by:nietod
ID: 2610046
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
 

Author Comment

by:Noose215
ID: 2610921
Thank you, feenix, for not just answering, but also explaining.
0
 

Author Comment

by:Noose215
ID: 10950977
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question