r/visualbasic • u/lmatonement • 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.
2
u/buck746 Jan 07 '21
I have a VB4 project at work that i'm stuck supporting. .frm files can be opened in notepad++ or BBedit. Hopefully your not stuck with undocumented .vbx extensions.
1
u/lmatonement Jan 18 '21
Wow, that's rough! No, I'm not dealing with any .vbx, just the few source files. I get them, and now throwing the old machine (and hard drive) away. Rewriting in C++, so everything's gravy :-D
2
u/buck746 Jan 07 '21
Instructions to hack 16bit software to run on new 64bit windows. https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-16-bit-applications-on-windows-10-64-bit/ba-p/1671418
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.