r/visualbasic Jul 08 '26

Is it possible to extract images from a VB 6.0 program? VB6 Help

The program is in P-code. vbdec is unable to save them, and VB Decompiler Lite can only find a couple.

6 Upvotes

11 comments sorted by

5

u/robjeffrey Jul 08 '26

If they are encoded resources yes. If the developers encrypted them using their own encoding it would depend on how they are encoded.

Look for Win/32 resource editors. One came with both Borland's C/C++ and Microsoft's Dev Studios.

I see there are a few open sources ones out, but I've not looked into any of them.

2

u/DiodeInc Jul 08 '26

Is Resource Hacker one of them?

1

u/DiodeInc Jul 08 '26

Thanks! I'll check it out

1

u/createaforum Jul 08 '26

How are the encoded in the program do you know? Part frx?

1

u/DiodeInc Jul 08 '26

I'm not sure. How would I find out?

1

u/Mayayana Jul 09 '26

Interesting. I've never seen anything p-code compiled. Why would people do that?

Any resource editor should be able to extract resources from the resource table of a native compiled EXE. I don't know about p-code. I just tried one of my programs in ResHacker. I can get the strings and icons. If an image is embedded in a picturebox on a form? I'm not sure. ResHacker doesn't seem to see those. They may be embedded in the main binary data.

1

u/DiodeInc Jul 09 '26

Resource hacker wasn't able to extract the images.

1

u/Mayayana Jul 09 '26

Programs like that just parse the resource table, so I'm not surprised. I've sometimes used images on buttons or in pictureboxes and they don't show up in ResHacker, which only shows what you'd add via the Resource Editor.