Yield(), WXUNUSED() and compile errors with wxMSW2.8.0rc1
Volker Bartheld
dr_versaeg at freenet.de
Wed Dec 13 07:30:37 PST 2006
Hi Vadim!
>VB> but somehow the compiler doesn't like the function body definition
>VB> virtual bool Yield(bool WXUNUSED(onlyIfNeeded) = false) { return true; }
>VB> in c:\program files\wxwidgets\include\wx\app.h anymore.
> This is because you include, directly or indirectly, windows.h (which
>#defines Yield) from somewhere. Make sure you always include
>wx/msw/winundef.h after including windows.h.
HOLY LORD! You're right. It cost me a while and a bunch of #pragma
message()s to find out where to insert the #include <wx/msw/winundef.h>
but after all I fixed it.
THX! That really saved my day.
Volker
__
Mail replies to/an V B A R T H E L D at G M X dot D E
More information about the wx-users
mailing list