Hahahaha.... Decompiler is a tool that turns an exe into c++ code? Well, this means you are not very acquainted with programming - that's possible to turn a program from a high level language like c++ to a low level lang like asm, but NEVER vice versa. If it was possible, all programs would have been already hacked.
It is possible - the output C code would nothing like the original though.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Yes, like it's quite easy to get into the MMF runtime exe.
Good luck sifting through thousands of lines of gibberish, though.
BTW, if you make a loop to assign say.....15000 variables(perhaps for a level map or something) then a decompiler will list all of those tiles individually. (unless your decompiler is smart(is there a smart decompiler?))
Well it's not actually written into memory individually, like normal languages ASM (as a frontend for binary) also has loops, which is how it would be written into the EXE, provided your using a good compiler
There are decompilers out there that convert software into ASM (you can open an EXE in Visual C++ and it displays the assembly code), and I'm sure there would be decompilers out there for C++, though I highly doubt there's any one that could decompile any program.
Something you'd need to keep in mind is most people use pre-compiled class files for their code (i.e. iostream, string, etc). A decompiler for C++ (or indeed any language at that level or higher) wouldn't know every single library written and thus would have to convert into pretty nasty code anyway, which calls DLL's and so on, instead of simply including a library to make it easier.
So yeah, pretty impossible in most cases, so if you want to be able to read someone elses code you'll need to learn assembler, which isnt that hard, it's just about 100x longer
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
Yeah, guys, you are right. Sorry. But I still think that decompilers are now just like automatic translation engines a few years ago - their work leaves really much to desire.
Well first off, Imp- I've been using C++ for a year and a half. Before that I did Vbasic.
IceKirby1- I'm not trying to break into MMF to get a serial code. I could get caught. I'm trying to decompile a game and see how its done. Programming wise, I can only make crappy little 3D games. I want to improve.
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.
You will not be able to learn anything about the game author's programming techniques from decompiling it. You would either get assembly or very shoddy C code.