r/visualbasic • • Dec 01 '20

Get Source Code from Visual Basic 3?

I am working on a system that was originally written in VB 3 (I think) in 1991. I was able to recover the source files, but they're not in plain text.

Does anyone happen to have a running Visual Basic 3 and could open the files and save them as plain text?

I'm looking at ten files in all for the last two generations of the code. The files are

CUST.FRM FILE.FRM MOD1.BAS PLOT.FRM VGL.MAK

I'm thinking that last file might be a Visual Basic "makefile"? It's a binary file, but seems to list the other files and maybe a project name.

6 Upvotes

22 comments sorted by

View all comments

4

u/JamesWjRose Dec 01 '20

If this is 1991 these are either VB 1or 2, as version 3 didn't come out until 1993. (I started with VB 2, yea, I'm old, I know)

.bas and .frm files SHOULD be text files, and SHOULD show the functions.

If you decompiled those files from the exe, that may be why you are not seeing plain text.

For example, I have some old code on my site that is written in VB 4 or 5, maybe 6. Anyway, the file format is the same: http://www.blissgig.com/default.aspx?id=3

You would need a copy of VB 2 or 3 in order to compile this into a new application. I couldn't find a legal copy, but maybe your search will be better.

1

u/lmatonement Dec 01 '20

This computer was used for development, and these are the source files. They're not plain text. Of that much I'm 90% sure.

I think it's VB 3. Of that, I'm maybe 60% sure. I understand that there was an option to store the source code in binary or plain-text format in VB 3, but I don't know about VB 1 and 2.

Thank you for your response!

2

u/JamesWjRose Dec 01 '20

I understand that there was an option to store the source code in binary or plain-text format in VB 3

Ok, I'll believe that, it was 25+ years ago. The only copy of VB3 I could find was on the "high seas"

I guess the next question is, why are you attempting to tweak this code? Unless it's something simple, it may be of value to start over. Maybe.

2

u/lmatonement Dec 01 '20

I'm planning to start over. This project is a reworking of an old project (obviously) that never took off. It's a complete do-over replacing hydro-pneumatic movement with servo motors, and everything else. The hope is that if I can read this code, I can get a jump start on much of the design process by copying the code. Starting with this code would be much more valuable than starting from a blank slate. I wouldn't be using the code to get started, but using it to try to make my algorithm implementation as robust as possible.

Thanks for asking!

2

u/JamesWjRose Dec 01 '20

Good plan. Good luck