RE: RFC: w32api-2.4-20060330-konrad.schwarz@siemens.com

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: RFC: w32api-2.4-20060330-konrad.schwarz@siemens.com

Schwarz, Konrad
This message was originally rejected because I was not a member of the
mailing list,
so here it is again:

> -----Original Message-----
> From: Schwarz, Konrad
> Sent: Thursday, March 30, 2006 11:09 AM
> To: '[hidden email]'
> Subject: RFC: [hidden email]
>
> Hello,
>
> when including Windows as follows:
>
> # define _WIN32_WINNT 0x400
> # define WIN32_LEAN_AND_MEAN
> # if 1
> # define NOGDI
> # endif
> # include <Windows.h>
>
> I get a compilation error:
> [...]/msys/1.0/mingw/include/winuser.h:3411: parse error
> before "BLENDFUNCTION"
>
> I therefore submit the following patch:
> ===================================================================
> RCS file: RCS/winuser.h,v
> retrieving revision 1.1
> diff -u -r1.1 winuser.h
> --- 1.1 2006/03/30 08:39:36
> +++ winuser.h   2006/03/30 08:43:35
> @@ -3408,7 +3408,9 @@
>  #endif
>  #if(_WIN32_WINNT >= _NT5)
>  BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
> +# ifndef       NOGDI
>  BOOL WINAPI
> UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,
> BLENDFUNCTION*,DWORD);
> +# endif
>  #endif
>  #if(_WIN32_WINNT >= _WXP)
>  BOOL WINAPI GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*);
>
>
> However, closer examination of this snippet shows up a second problem:
> winuser.h (and only winuser.h) uses the macros _NT5, _WXP,
> _WME, _W98, _W2K, but I cannot find a definition of these anywhere.
> I suspect they should be replaced with constants of the form
> 0x0500 etc.

Regards,

Konrad Schwarz


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
<a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
MinGW-patches mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-patches
Reply | Threaded
Open this post in threaded view
|

Re: RE: RFC: w32api-2.4-20060330-konrad.schwarz@siemens.com

Earnie Boyd
Quoting "Schwarz, Konrad" <[hidden email]>:


>> I therefore submit the following patch:

Please submit your patches to the patch tracker at
http://sourceforge.net/projects/mingw and not this list.

Earnie Boyd

http://shop.siebunlimited.com



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
MinGW-patches mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-patches