r/visualbasic • u/MrCasper42 • Dec 03 '19
Help with running an old visual basic game on Windows 10
I have the file for an old game from my uncle he got years back. It was written in Visual Basic in 1995, and when I run the application, I get an error stating "This app can't run on your PC". I believe I may need to run the program in visual studio, but I'm far from an expert and can only get the text files to open and haven't had any luck running the .exe itself. I think I might need to write a code to call the .exe file based on some brief online research, but I can't get it to work. Any advice would be much appreciated!
2
u/Songg45 Dec 04 '19
Do you have the source code? Or is there a way to share the game?
1
u/MrCasper42 Dec 04 '19 edited Dec 04 '19
I have the folder on dropbox. I can share the link with you if you would like to check it out:
https://www.dropbox.com/sh/tv5mdetxwwwwm53/AAC32ZdSUft11dhb_pyW0nlua?dl=0
1
1
u/npmbad Dec 06 '19
A quick hex preview of the vb files in that dropbox reveals they're made in visual basic 3. You can google your way into how to execute vb3 in windows 10
5
u/FlibblesHexEyes Dec 04 '19
1995? Probably VB5? Modern Visual Studio won’t help.
If you don’t have the source, it’s unlikely to run on Win10 as 16 bit exe’s aren’t supported anymore, and the VB libraries aren’t installed either.
Try XP or earlier in a VM?
2
2
u/JamesWjRose Dec 04 '19
FYI: VB 4 came out in late 1995. I was a beta tester for WinNT and Win95 and have been using VB since version 2.0 (now using c#) VB 4.0 allowed the creation of 16 and 32 bit applications. History lesson over. Have a good evening
5
u/ekolis VB.Net Advanced Dec 04 '19
You might be able to run it in DOSbox, I think? It's probably a 16 bit app which won't run on a 64 bit system, so you need an emulator layer such as DOSbox to run it on an older version of Windows.
1
u/princess_moon_butter Dec 04 '19
Have you tried decompiling the exe? I've done it with programs I wrote where I misplaced the source code. It won't get you a perfect copy of the source but it's often enough to base a re-write on.
1
1
u/Songg45 Dec 05 '19
ALRIGHT! I have figured out a solution to this:
This program was written in VB3 back in 1995. It requires Windows, so DOSBox is out without installing Windows. If we are installing Windows, we may as well go with a better emulation platform
Steps to Installation
Download a Windows 98 install disc
Install Virtualbox/VMware Player
Install Windows 98
Install Virtualbox Guest Additions/VMware Tools
Drag and drop the Duel 2 folder to the Win98 desktop
Enjoy!
Livestreamed the troubleshooting here
0
3
u/JamesWjRose Dec 04 '19
Windows 10 file properties (right click, choose Properties, then choose the Compatibility tab) Try running it as Windows 95. If this really is from 1995 this is likely VB 3.0 (I started with VB 2.0) VB 4, which was both 16 and 32 bit came out late in 1995.
If you have the source code more MAY be able to be done with it.