Link to home
Start Free TrialLog in
Avatar of 2810
2810

asked on

Uncompile VB6 code

Hi,

I have old VB6 .exe file, which is running fine.
I would like to make some ammendments to my code,
but due to a crash I lost the source code.
Is there a way to uncompile the exec ?

Cheers,
2810
Avatar of andysalih
andysalih

nope, you can decompile the source code, but that will only display it in machince code.

but you cannot get the physical source code back which you orgianaly wrote regardless to what any other EE tells you

hope this helps
Andy
ASKER CERTIFIED SOLUTION
Avatar of andysalih
andysalih

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are correct, but not 100% correct.

You can't decompile the exe in most cases, but you can always disassemble it. Disassembly will result in ASM code which is completely different from VB code. A pure-VB programmer would be unable to make their changes.

The case when you can decompile the exe is when it has been compiled to P-code (psuedo-code), but I don't know of any tools written for versions higher than VB3. Since VB5/6 compile to Native code by default (which is a lot faster), I highly doubt that many people use P-code.

In any case, you did right by locking the question. You weren't completely correct, but you thought you were and didn't duplicate someone else's comment.
Avatar of 2810

ASKER

Thanks guys.
I will have a look through my back-ups to see if I can find  the source code.

2810
thank you Kdavid, but i did actually mean dissasemble, i was at work at the time so i was sort of busy with other things on my mind,

i agree, i dont know of any tools that can dissabemble and regenerate forms or regenerate the CAB file back in to VB source.

regards
Andy
andysalih,

I thought you might have, but wanted to clarify for 2810 just to be sure.

Later,
KDL