From: Thomas Messenger <messengertj@ci...> - 2003-06-20 23:22:54
Steve Christon wrote:
Fwd: Windows versions and MinGW
1) Will MINGW work in Windows XP Home edition?
(I do not use Windows so I do not know the
differences between the many Windows OSs.
I need to compile a GCC-unix project so it
can run for testing purposes as a Windows
Which versions of Windows will MINGW work in?
Win98, Win98SE, WinNT, Win2000, (Win2000-home?),
WinXP-pro, WinXP-home, (there are 4 versions of
WinXP on the MS website) Are there others?
2) Will an executable compiled with MINGW/WinXP
(for example) be able to run/execute in a
Windows 98 environment?
Thanks for any help.
and received two replies indicating MinGW XP-98 compatibility.
I would add a caution to those replies. If you trigger the UNICODE
conditional switches in the Windows headers in a Windows application
compiled in XP, the resulting code will not run in 98 which has very
limited UNICODE tolerance. This topic is discussed at length in
chapter 2 of Petzold's Programming Windows, 5th ed. I can tell
you for sure that Petzold's HelloWin example in chapter three,
compiled on my XP Home machine with UNICODE flags, failed executing
RegisterClass on a 98 machine. (A test on RegisterClass is included
in Petzold's sample programs for just this reason. All his samples
are designed for both ASCII and UNICODE versions using the
TEXT macro on all strings.) The code runs on my XP machine
because XP, I presume, is like NT in being inherently UNICODE.
From: Oscar Fuentes <ofv@wa...> - 2003-06-21 00:10:00
"Thomas Messenger" <messengertj@...> writes:
> and received two replies indicating MinGW XP-98 compatibility.
> I would add a caution to those replies. If you trigger the UNICODE
> conditional switches in the Windows headers in a Windows application
> compiled in XP, the resulting code will not run in 98 which has very
> limited UNICODE tolerance.
you surely know that there are *dozens* of API functions which will
make your application dependant of certain Windows version.
On this regard, UNICODE is a simple issue: either you use it (and
stick to WinNT and up) or don't (and run everywhere).
Every time an API function or structure is used on your code, check
the documentation for version-dependant issues.