Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
I lost the source code from one project I did on the company I'm working for and haven't been able to find a Visual Basic 6 decompiler; does that even exists?
I only have the EXE that I've rescued from a user's machine.
Yes I think You can get it download and separately its Help files from:
and there is a Video on YouTube which explains how to Use it to Get
the Code from an exe file and Save it.
I hope that I helped.
In my own experience where I needed to try and find out what some old VB6 programs were doing, I turned to Process Explorer (Sysinternals). I did the following:
This didn't show the actual functions, but it listed their names, folders of where files were being copied from and to and if it accessed a DB it would also display the connection string. Enough to help you get an idea, but may be useless for complex programs. The programs I was looking at were pretty basic (no pun intended).
Did you tried the tool named VBReFormer (http://www.decompiler-vb.net/) ? We used it a lot past year in order to get back the source code of our application cuz we lost the source code of our application 6 years ago and it worked fine. We where also able to made some user interface changes directly from vbreformer and save them into the exe file.
@antyrat in this case the link is the essential part of the answer. If the linked page changes the answer is useless.
Free edition gives you a good clean look for the GUI, but variables and statements are blocked. Maybe if you paid them, it would be a different look in terms of your code. But I also noticed that some codes are not supposed to be there.
link not working. I used this link
I have used VB Decompiler Lite (http://www.vb-decompiler.org/) in the past, and although it does not give you the original source code, it does give you a lot of information such as method names, some variable strings, etc. With more knowledge (or with the full version) it might be possible to get even more than this.
This one was handy for me - it outputted a whole bunch of assembler looking code; but I was after the strings and they were easy to lift from the decompiled code.
Yes, I too was after some 'hardcoded' strings, so this tool really helped me.
This was awesome, and exactly what I was looking for. Thanks!
For the final, compiled code of your application, the short answer is “no”. Different tools are able to extract different information from the code (e.g. the forms setups) and there are P code decompilers (see Edgar's excellent link for such tools). However, up to this day, there is no decompiler for native code. I'm not aware of anything similar for other high-level languages either.
This link provides a lot of resources for VB6 Decompiling, but it seems like it will depend greatly on what you DO have (do you still have the pre-link Object code [EDIT: er... p-code I mean], or just the EXE?) Either way, it looks like there's something, take a look in there.
sorry for the flag but many of the links in this answer are to download a virus.