Solved

C++ Decompiler?

Posted on 2000-03-11
4
341 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now