I've heard that unlike native code (which can only be decompiled into assembly code), P-Code is actually capable of being converted back into VB code. For example, if I compile into P-Code the below VB code:
dim MyVar as string
MyVar="This is a test."
print MyVar
and then decompile it back to VB code, It won't be exactly the same but it will still be runnable code that produces identical results when run in VB6, such as:
dim A as string
A="This is a test."
print A
In fact if your program was originally composed of 1 module, 2 forms, and 5 classes (plus the VBP project file), before compiling, a proper P-Code decompiler should give you back 1 module, 2 forms, and 5 classes, and create a VBP project file that lets you load the whole thing back into VB6.
So far, all I've found in terms of decompiling P-Code is this http://progress-tools.x10.mx/p32dasm.html but all it does is show a disassembly listing of the P-Code commands. Unfortunately though it isn't a true P-Code decompiler (which I've heard exists, but never yet found one) that should actually reproduce all the files in the original VB6 project (FRM files, BAS files, CLS files, and the VBP file). Does anyone here know where I can get a true P-Code decompiler as I have described?
dim MyVar as string
MyVar="This is a test."
print MyVar
and then decompile it back to VB code, It won't be exactly the same but it will still be runnable code that produces identical results when run in VB6, such as:
dim A as string
A="This is a test."
print A
In fact if your program was originally composed of 1 module, 2 forms, and 5 classes (plus the VBP project file), before compiling, a proper P-Code decompiler should give you back 1 module, 2 forms, and 5 classes, and create a VBP project file that lets you load the whole thing back into VB6.
So far, all I've found in terms of decompiling P-Code is this http://progress-tools.x10.mx/p32dasm.html but all it does is show a disassembly listing of the P-Code commands. Unfortunately though it isn't a true P-Code decompiler (which I've heard exists, but never yet found one) that should actually reproduce all the files in the original VB6 project (FRM files, BAS files, CLS files, and the VBP file). Does anyone here know where I can get a true P-Code decompiler as I have described?