473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

exe to C++ source code

Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks
Jul 22 '05 #1
8 11201

"Michael Dekson" <no****@nospam.com> wrote in message
news:c0**********@ariane.blic.net...
Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks


Not one I know of.
Compilers make many optimisations etc in the exe, so it's difficult to reach the
source code from the exe.

-Sharad
Jul 22 '05 #2
"Michael Dekson" <no****@nospam.com> wrote in message
news:c0**********@ariane.blic.net...
Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.


What you are asking is how to turn a hamburger into a cow.

It is not possible to produce reasonable C++ source code from an .exe file,
even if you know exactly which compiler and the compiler settings (e.g.
optimization) were used to create the executable. Simply too much
information is lost in the compilation process.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl


Jul 22 '05 #3
"Michael Dekson" <no****@nospam.com> wrote in message
news:c0**********@ariane.blic.net...
Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks

This has been discussed over and over, one of the replies I liked was:
"Can you return a hamburger back to a cow?" ;)

You can recover / rebuild the source code back from the binary but that will
take lots of time and that is rather called reverse engineering.

--
Elias
Jul 22 '05 #4
Sharad Kala wrote:
"Michael Dekson" <no****@nospam.com> wrote in message
news:c0**********@ariane.blic.net...
Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks

Not one I know of.
Compilers make many optimisations etc in the exe, so it's difficult to reach the
source code from the exe.

-Sharad


See my reply to your later post.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #5
On Wed, 11 Feb 2004 16:26:03 +0200 in comp.lang.c++, "lallous"
<la*****@lgwm.org> was alleged to have written:
This has been discussed over and over, one of the replies I liked was:
"Can you return a hamburger back to a cow?" ;)


You can, but it is no longer legal in informed locales due to BSE risk.

Jul 22 '05 #6
Peter van Merkerk wrote:
"Michael Dekson" <no****@nospam.com> wrote in message
news:c0**********@ariane.blic.net...
Hello,
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.

What you are asking is how to turn a hamburger into a cow.


Wrong. He is asking how to create a source file from an executable
code. This is far different than turning hamburger into a cow.
It is possible to create source code from an executable. The
probability of it looking like the original source code is
extremely low, so low that you would win a lottery many times
over.

It is not possible to produce reasonable C++ source code from an .exe file,
even if you know exactly which compiler and the compiler settings (e.g.
optimization) were used to create the executable. Simply too much
information is lost in the compilation process.
Reasonable is in the eye of the beholder. I agree that the
generate source code will be difficult to understand.
However, I think many newbies should attempt the project just
so these posts will stop.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #7
Only to x86 Assembly.

Maybe to C but produced source will have no similarity with official source.
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks

Jul 22 '05 #8
<- Chameleon -> wrote:
Can I exe file made in Microsoft Visual C++ decompile into source code.
If it is possibly please tell me how.
Thanks

Only to x86 Assembly.

Maybe to C but produced source will have no similarity with official source.


1. Don't top-post. Replies are append to the end or
interspersed.

2. One can parse a Windows executable file into ARM assembly
or other assembly language, then into C or C++.
There are "byte-code" assembly languages which are an
intermediary step between the high-level language and
the platform. Many compilers, which compile to different
platforms, use this technique. They have specific back
ends that translate the intermediary language into
platform specific instructions.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tim Zhao | last post by:
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do...
9
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM...
115
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i...
4
by: kj | last post by:
I consider myself quite proficient in C and a few other programming languages, but I have never succeeded in understanding a largish program (such as zsh or ncurses) at the source level. ...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
8
by: Alvo von Cossel I | last post by:
hey everybody, I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function....
7
by: Tina | last post by:
In 1.1 I used to use a WebControlLibrary to hold code I didn't want to expose when I distributed a component. The code would compile to a separate dll and could not be viewed when used in a vs.net...
66
by: Jon Skeet [C# MVP] | last post by:
I'm sure the net will be buzzing with this news fairly soon, but just in case anyone hasn't seen it yet: Microsoft are going to make the source code for the .NET framework (parts of it,...
4
by: Spizzat2 | last post by:
I'm trying to figure out a workaround to a minor annoyance that I'm coming up with while coding a site. I've got some keyboard shortcuts set up for the site via javascript, and when I press escape,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.