win95/unicode

Peter Kuemmel kuemmel at coffeelogic.de
Tue Nov 9 20:23:28 CET 2004


When compiling for win95 we must remove all higher stuff.
So, are the definitions in qt_windows.h really necessary?

I think they don't depend on the _MSC_VER marco,
all the macros are defined in the SDK headers

   - SPI_GETKEYBOARDCUES in WinUser.h: #if(WINVER >= 0x0500)
   - WM_MOUSEWHEEL       in WinUser.h: #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
   - WM_MOUSEHOVER       in WinUser.h: #if((_WIN32_WINNT >= 0x0400) || (WINVER >= 0x0500))
   - WM_MOUSELEAVE       in WinUser.h: #if((_WIN32_WINNT >= 0x0400) || (WINVER >= 0x0500))

With the correct target platform settings the extra definitions could be avoided:

Minimum system required    Macros to define

Windows Server 2003       _WIN32_WINNT=0x0502
                                 WINVER=0x0502

Windows XP                _WIN32_WINNT=0x0501
                                 WINVER=0x0501

Windows 2000              _WIN32_WINNT=0x0500
                                 WINVER=0x0500

Windows NT 4.0            _WIN32_WINNT=0x0400
                                 WINVER=0x0400

Windows Me               _WIN32_WINDOWS=0x0500
                                 WINVER=0x0500

Windows 98              _WIN32_WINDOWS=0x0410
                                 WINVER=0x0410

Windows 95              _WIN32_WINDOWS=0x0400
                                 WINVER=0x0400

(  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/using_the_windows_headers.asp  )


It works with the SDK; other should check it for their setup,
especially for mingw.

Attached is are patches to compile for win95 with the
Macros:
  _WIN32_WINDOWS=0x0400
  WINVER=0x0400
  with and without UNICODE


Peter
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nonunicode.txt
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20041109/3558b790/nonunicode-0001.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qt_windows.txt
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20041109/3558b790/qt_windows-0001.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win95.txt
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20041109/3558b790/win95-0001.txt


More information about the kde-cygwin mailing list