Tech Support > Microsoft Windows > Development Resources > Win16 to Win32 EXE converter
Win16 to Win32 EXE converter
Posted by eljainc@sbcglobal.net on February 1st, 2007


Hello,

Is there such a utility that will take a Win16 or DOS real mode
application (EXE) and convert it to a Win32 app. It would just be a
simple wrapper around a 16-bit executable and make it a Win32 app.

Thanks in advance

Mike McWhinney
elja, Inc.

Posted by Grzegorz Wróbel on February 1st, 2007


eljainc@sbcglobal.net wrote:
I don't think the word "simple" is appropriate here.

--
Grzegorz Wróbel
http://www.4neurons.com/
677265676F727940346E6575726F6E732E636F6D

Posted by Bob Masta on February 2nd, 2007


On 1 Feb 2007 15:41:18 -0800, eljainc@sbcglobal.net wrote:

If you want "simple", I think the best you can hope for is that your
wrapper will pop up a DOS box and run the original app. This
could be done in Win9x simply by setting up the shortcut
appropriately. But now XP, NT, 2K, etc have no more real-mode,
so this is no longer possible. (Though you might still be able
to make this work for simple console DOS apps... haven't tried.)

The bigger question is what exactly you are hoping for. Since
DOS apps had nothing analogous to standard Windows controls,
each app handled its input and output data as it saw fit. There
would be no way for some external wrapper to figure out what
the original code "really wanted" and map that to Windows controls.

DOS apps also could manipulate the video mode at will, and any
program worth using wrote directly to the graphics controller/memory,
except for simple text-only code. Direct graphics control was
*extremely* complicated and convoluted in EGA and VGA modes,
so I can't imagine any external wrapper figuring all of this out
and remapping to the current Windows mode on the fly. That
would be in the realm of "possible, but nobody likely to attempt
without a big government grant".

I think you get the idea...

Best regards,






Bob Masta

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Signal Generator
Science with your sound card!