Click to See Complete Forum and Search --> : how can i see the source code?


wildelf
02-26-2003, 12:47 PM
Hello to everyone
I have an *.exe file which i made in c++, and wrote it on a cd. But i have not save the files of the project. Now i want to change some things in the program and i cannot open the source code ( *.cpp) because i dont have it, only the *.exe file. Is there a way to retrive it or i have to make it again from the begging?
Please late me know if someone knows a way to do so.
Thanks for your time
Tace care all of youselves

Strike
02-26-2003, 01:19 PM
Nope there's not. Best you could do would be to disassemble it and get the assembly code out of that.

wildelf
02-26-2003, 01:21 PM
and how am i supose to do changes in the assembly code without knowing it?

bwkaz
02-26-2003, 01:33 PM
You're supposed to keep the source. :p

red_over_blue
02-26-2003, 01:38 PM
You're supposed to keep the source

Exactly... if someone figured out how to take a compiled binary and turn it back into the original source code, he/she would be a very rich person.

wildelf
02-26-2003, 01:46 PM
I know i should have keep the .cpp file but i didn't.
I dont understand how crackers break the .exe files and they are making cracks, it has to be a way to do it . Am i right?

pythagras
02-26-2003, 02:01 PM
Originally posted by wildelf
I know i should have keep the .cpp file but i didn't.
I dont understand how crackers break the .exe files and they are making cracks, it has to be a way to do it . Am i right?

Well they disassemble it, look at the assembly code, and try to bypass the part that does CD checks and what-not without breaking the executable. You dont need a cpp file for that...

wildelf
02-26-2003, 02:04 PM
i don't want to bypass any cd check i just want to change some things on the forms i made, but to do so i neep the cpp file

Strike
02-26-2003, 02:35 PM
Originally posted by wildelf
i don't want to bypass any cd check i just want to change some things on the forms i made, but to do so i neep the cpp file
Yup, basically you'd be better off remaking it rather then spending time trying to figure out what the disassembled binary does.

PolteRGeisT
02-27-2003, 08:47 PM
Bluntly: What you want is impossible. Learn assembly or just re-write it. sorry man.

bandwidth_pig
02-27-2003, 09:48 PM
Originally posted by wildelf
I know i should have keep the .cpp file but i didn't.
I dont understand how crackers break the .exe files and they are making cracks, it has to be a way to do it . Am i right?

If your writing code in C++ (which in my opinion is a difficult language to learn) then you really shouldn't shy away from a hex editor so quickly. If anything, this is a great excuse to plunge into a whole new arena...Assembly. If your interested in how computers work at the most rudementary level, ASM is a great place to start. It is a very powerful language. If your interested in learning more, I found "Assembly Language Step by Step by Jeff Duntemann to be quite a good book. It's written in a way that takes the complexity out of ASM and Jeff is actually quite funny. I think he has since come out with a successor to this title (which I'm sure you could find on Amazon). I myself find firmware much more interesting in software. Perhaps that is why I never really found C++ that interesting. C made more sense to me.