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.

3

u/[deleted] Dec 01 '20

[removed] — view removed comment

3

u/JamesWjRose Dec 01 '20

This is a great idea, been so many years since I had msdn

1

u/lmatonement Dec 02 '20

I assume I'll need to get a suitable version of Microsoft Windows, too? Or if it's on MSDN, maybe that means they spruced it up so I only need to get a modern version of Microsoft Windows :-D

2

u/[deleted] Dec 02 '20

[removed] — view removed comment

1

u/lmatonement Dec 02 '20

Wow, that would be impressive! According to my reading, VB 3 files "might" be openable in VB 4, but not later versions, so I wouldn't hold my breath for that. Thanks for the tip and info!

1

u/[deleted] Dec 02 '20

[removed] — view removed comment

3

u/lmatonement Dec 02 '20

I was able to get Microsoft Visual Basic 3 running on Microsoft Windows XP 32-bit! https://brightlight.today/fileserver/downloads/313d05f31982459c41b339b34fc2eca7