r/visualbasic • • 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!

6 Upvotes

20 comments sorted by

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.

1

u/MrCasper42 Dec 04 '19

I just have the files on Dropbox, not the actual source code.

1

u/JamesWjRose Dec 04 '19

Then yea, this is may be difficult. Have you tried running it as I mentioned? And if so, what happened?

1

u/Songg45 Dec 05 '19

It's a 16 bit application, so it will NOT work on Windows 10 64 bit

1

u/JamesWjRose Dec 05 '19

The next option is to create a Virtual Machine and install Win95 on it.

Virtual PC: https://www.microsoft.com/en-us/download/details.aspx?id=3702

You'll still have to fine a copy of Win95, but at least it won't screw up your machine

1

u/Songg45 Dec 05 '19

The website says virtual pc is only supported by windows 7

1

u/JamesWjRose Dec 05 '19

Ok, so not that VM, however there are other Virtual Machine software. Let google be your friend

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

u/Songg45 Dec 04 '19

Yeah I'll check it out tonight

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

u/Songg45 Dec 05 '19

VB 3! Requires Windows, but comes with VB300. Duel 2 was copyrighted in 1995

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

u/Songg45 Dec 05 '19

I have successfully decompiled the VB3 executable.

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

  1. Download a Windows 98 install disc

  2. Install Virtualbox/VMware Player

  3. Install Windows 98

  4. Install Virtualbox Guest Additions/VMware Tools

  5. Drag and drop the Duel 2 folder to the Win98 desktop

  6. Enjoy!

Livestreamed the troubleshooting here

0

u/[deleted] Dec 03 '19

[deleted]

1

u/Xalem Dec 04 '19

No. After being compiled VB games ran as .exe and came with a vb runtime .dll