I need help decompiling a VB6 program

Hi Experts,
I have an executable for a VB6 program.  I need to decompile the application in order to read the source code.  How can I don this?

Thank you in advance.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
There are some tools available on the web that say that they can help, and the following is a statement from one of them and you can see that there are some potential challenges/problems.

VB Decompiler is a decompiler for programs (EXE, DLL, or OCX) written in Visual Basic 5.0 or 6.0. As you know, a VB program can be compiled either into interpreted p-code or into native code.

Since p-code consists of high-level commands, it's possible to decompile it into source code (though, of course, you won't get the names of variables, functions, etc.). VB Decompiler  can restore many p-code instructions. It cannot produce compilable source code but makes it much easier to analyze the program's algorithm and partially restore its source code.

If some program was compiled into native code, you cannot restore the source code from machine instructions. But even in this situation, VB decompiler can greatly help you analyze the program, thanks to a powerful disassembler that supports Pentium Pro commands, including MMX and SSE. VB decompiler lets you to disassemble all functions. It includes a code analyzer too, which searches for all API function calls and string references in the disassembled code and converts them into comments for analyzed strings. In general, VB Decompiler is an ideal tool for analyzing VB programs. It's a must-have if you've lost some source code and need to partially restore your project!

If your purpose is to move this program to .Net then you are better off rewriting it from scratch.
Kanti PrasadCommented:

Try http://www.vb-decompiler.org/ but you won't get all of the source code but you can get method names,  variable strings, etc. .

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.