Question wrt winundef.h + UNICODE

Manuel Martín mmartin at ceyd.es
Wed Aug 29 11:57:13 PDT 2007


> Hi,
> msw/winundef.h is supposed to "restore" the *A/*W switch for Win32 APIs
> done by the Platform SDK headers. However, it seems the PSDK headers
> switch on the #define UNICODE, while winundef.h switches on the #define
> _UNICODE.
> When e.g. _UNICODE is set but not UNICODE, 'TCHAR' is a normal char, but
> winundef.h uses *W functions, resulting in compiler errors.
> This means you need to have either both or none of UNICODE and _UNICODE
> #defined, which may not always be the case in practice... If the PSDK
> uses UNICODE, shouldn't winundef.h do so as well?
> 
> -f.r.

What is that you want to use from W32 API you can't do it with wxwidgets?
Which wx version?
Isn't it enough defining UNICODE=1 in compiler's options?


HTH
Manolo




More information about the wx-users mailing list