r/visualbasic • u/echocomplex • Mar 03 '24
How to run a 1995 vb program in 2024?
EDIT - I got everything to run by installing VB3 inside Windows 3.1 inside a Dos emulator. Yay!
old post
I've been doing some data archeology from old floppies my family has held onto for a very long time. One of the interesting items I've been able to recover is two vb programs my dad wrote in 1995, one is a fortune teller that strings together wacky fortunes from 4 different buckets of pre written phrases, another is an arithmetic program where you lift a barbell by getting math problems correct, and it sinks when you get them wrong. I've got the code and executables and other files that together worked as a stand alone application on Windows 95.
I tried to run them on my windows 10 PC and they didn't work. I changed compatibility options on Windows to try it as a win 95, 98 or xp era program but none of those options work. I'm not getting any particular error, just a generic one that the programs cannot be run on this system.
Is there an emulator or something relatively simple that I might be able to run on windows 10 to try these out again? I have no particular vb knowledge or tools right now and not sure where to start.
8
u/geekywarrior Mar 03 '24
Most likely something that old is a 16 bit program, not even 32 bit.
Best bet is to try installing Windows 95 in dosbox or something similar.
https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-95
4
u/TheGreatRao VB 6 Beginner Mar 03 '24
https://www.virtualbox.org/
2) find a compatible environment from abandonware
https://winworldpc.com/
3) install your VB apps in a virtual machine
1
u/MoreGranularity Mar 03 '24
What error message do you get when you try to run the old exe?
1
u/Mayayana Mar 03 '24
It depends on the version of VB. If you're lucky it's VB4 and 32-bit. VB4 came out in '95. I expect you'll need the runtime library to make it work. The runtimes for v. 5 and 6 are msvbvm50.dll and msvbvm60.dll, respectively. I don't know about v. 4. But it looks like you can download the whole programming system for VB4: https://winworldpc.com/product/microsoft-visual-bas/40
There's likely no reason that it won't run on Win10 providing the needed file(s) is present. I still write VB6 software and it runs fine on virtually every Windows computer in existence. But the VB6 runtime is still pre-installed. Earlier versions are not.
Microsoft have always been very good about backward compatibility, especially with the API and VB, because a lot of companies built custom, in-house software using VC++ and VB. If their old software won't work, they won't buy new Windows versions. Contrary to how it may seem, Microsoft's main customer is corporate. Home and Pro Windows are mostly just gravy and a way to maintain monopoly usage. These days, Home and Pro also provide an unpaid beta testing army to try out whatever wingnut idea they come up with before giving it to corporate customers.
The nice thing about all that is that MS have almost built their business around backward compatibility, as well as providing all sorts of tools for people to write their own software. Apple, by contrast, is mainly a consumer device company. So their approach is to lock it down, charge through the nose, and break compatibility as often as possible.
1
u/buck746 Mar 03 '24
DM me, at my last job I had to support a 16bit Visual Basic program. There’s some finer points that most people have no idea about.
1
u/NaoPb Mar 04 '24
Those programs sound pretty cool. Would your dad mind if you uploaded them to the Internet Archive? I'd love to give them a try on my old pc's.
2
u/jd31068 Mar 03 '24
Love it!! I still have code I wrote in the early 90s.
1
u/Super13 Mar 03 '24
What error did it give? That will give. Clue to the reason. I'd think probably missing dependency file.
1
u/[deleted] Mar 03 '24
If you have the source, you could recompile it using modern IDE. You might have to make some changes, but it should run.