18 November 2018
So WineVDM has been out for quite a few months now, and has increased its software compatibility so much in that short time. A large majority of the 16-bit Windows programs and games that I have now work 100% correctly, and the rest work at least partially. I am amazed and pleased, and I thank the developers for their hard work on the project.
Let's take a quick look at Indy's Desktop Adventures again:
With WineVDM compiled on 2018-11-17.
Comparing it to how it looked and worked when I first found WineVDM (go a few entries back in this blog to see a screenshot), the main game frame is now in the correct position. Also, the speech bubbles have functional buttons; there is now no need to use the keyboard to close them. Only a minor transparency issue remains. The game is of course still completely playable from start to end.
I spent so much time with WineVDM that I didn't notice that the source code to Win3mu was released. Written in C#, it works in a similar fashion to WineVDM. Since the necessary CPU mode to execute 16-bit code is unavailable when running on 64-bit Windows (and is also broken on some newer CPUs), they both provide their own software emulated x86 CPU. The other half of the puzzle is the API "translator". Anytime a program wants to invoke a 16-bit Windows API, it gets redirected to a matching API on the host (or a reimplementation of it). WineVDM uses the API code from the Wine project, whereas Win3mu started from scratch.
The documentation for Win3mu is very scarce, but some things were explained inside the series of articles the author wrote for an online magazine. In case it helps anyone, here is the process I used.
You need to have at least Visual Studio 2015. The project targets Microsoft .NET Framework 4.6.1, so install the targeting pack if needed.
The program has a few dependencies, all of which are from the author's other projects. These are: Sharp86, ConFrames and PetaJson.
VS2015 was not happy with the project file for PetaJson (VS2017 might be alright with it). To resolve this, create a new C# ClassLib project within the Win3mu solution. Add the
After that, it should all build and give you a number of binaries.
From what I can tell, the following programs do the following things:
WineVDM is miles ahead, almost certainly thanks to the Wine codebase. But Win3mu can run many simple programs too. It does seem to need the actual Windows 3.1 library files to run some of those, especially
Programs that do work look really nice. Take a look at these comparison screenshots of Yacht 2.21 by Frank Bielsik.
Win3mu
WineVDM
Windows 3.1
The scaling is a bit different in all cases, but pretty accurate. Win3mu adds font smoothing to the program.
The tool from Win3mu could be modified to create a converter for WineVDM instead. However I think the current methodology that borrows NTVDM64's mechanism (intended as a shim for 16-bit installers of 32-bit programs) works better. You only need to create a shortcut of the program and change the icon to look equally nice.
If you're looking to run old 16-bit Windows programs, then WineVDM is still the way to go. Win3mu is a nice second option for a problem that was practically unsolved only a short while ago.
© Andrew Nile 2018-2024. Privacy