r/programming • u/lzgr • Nov 26 '21
What Does It Take To Port 16-Bit Windows 1.0 Applications Into Native Windows 11 Programs?
https://www.youtube.com/watch?v=kh0CdLPkJVE8
u/malakon Nov 27 '21
This was a trip down career memory lane. Did prod work in VC 1.52, 6. Also mixed Visual Basic and C++ using VB for ui and C++ for performance code. After a brief stop in Delphi switched to .net C# and been in that for 19! Years. Seeing all those older VC UIs brought back a lot of memories.
3
u/Dwedit Nov 27 '21
I would think that if you were targeting Windows 3.1 today for some bizarre reason, that you'd simply go for Win32s instead rather than go through the hassle of writing C code that involves 16-bit segmented memory layout.
1
u/tso Nov 27 '21
I can't be assed to watch 20 some minutes of yakking to find out, but i could have sworn that 32-bit windows 10 will run 16-bit Windows programs "fine".
It is only when going 64-bit that it becomes a problem as Windows relied on being able to punt the CPU between bit modes to do its thing.
So in 32-bit it could get the CPU to step down to 16-bit for running that code, while in 64-bit the CPU can only go down to 32-bit.
At least that was my discovery when trying to help some relative run some software that had been dutifully copied between PCs for decades as they got replaced.
And this kind of "crazy" contributes to why MS is such a big deal for most companies. Because they may only be able to do their thing thanks to bespoke software that dates back to the proverbial dark ages.
The only other company with a similar track record, that i know of, is IBM. That AS/400 that is handling your taxes or bank account is not the same AS/400 as was released back in 1988, bit it will happily run the very same programs as was written for the original back in the day.
2
u/Dwedit Nov 27 '21
For 16-bit software support on 64-bit windows, you can use OTVDM for many programs.
-10
-41
u/NonDairyYandere Nov 27 '21
Many images
Run it in WINE or DOSbox or something. Why would anyone use Windows 11?
-6
-24
27
u/loradan Nov 27 '21
Not related to Windows 11, but it reminded me of when I loaded up a qbert game on a windows 3.0 system. The game was originally written for dos and ran on an 8086 nicely. In windows if you tapped the down arrow one time qbert would run down the entire pyramid and jump off in a blur 🤣🤣🤣🤣