|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Howdy,
I've got a .exe file that was composed in Borland C++ Builder 4, I was wondering if there is anyway of getting at the source code easily. It's not an especially big/complex program. Cheers |
|
#2
|
||||
|
||||
|
Not unless it was compiled with debug code. And then if it was, you would still need access to the source. So to make a long story short, no.
If you don't have the source, you have to contact the programmer/company that created it and get the source that way (assuming they release thier source). |
|
#3
|
|||
|
|||
|
easily? no. you could learn assembler and how to use a debugger like softice. then you have some kind of "source code". with some practise, you can even read parts the C code from it.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#4
|
|||
|
|||
|
...
well i figure, when u compile a program it makes the .exe so if u can get a prog that decompiles u could probably get the source.
i know in JAVA u can get progs that get the source code from binary class files. |
|
#5
|
|||
|
|||
|
you cannot easily because
there is not that many assembler instructions. so many different c commands compile to much fewer instructions. if the program was not compiled for debugging, all information that is somewhat "verbose" in a high-level language (like variables or function names) is lost. and most compilers optimize the code after the first pass of only translating. thus the code can be modified for different reasons and the same C command can compile to different assembler code if used in different context. there is probably some more reasons i can not think of right now. |
|
#6
|
|||
|
|||
|
Ah well, guess I'm actually going to have to do my coursework properly
![]() Cheers for getting back so fast though peeps! Fenris |
|
#7
|
|||
|
|||
|
Its possible
As people can and have ripped all the source code from Windows, added in some bits, and then recompiled it.
I believe. They also had access to some very nice computers for a ong period of time (probably a cray). Doing the coursework is probably the easiest way. Unless it involves trees in haskell. |
|
#8
|
||||
|
||||
|
The sourcecode that was seen by these people was assembly, not C.
It is possible to alter the code and recompile it but you have to know assembly to do this. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Ripping source code from .exe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|