#177 Win32DynamicLibraryManager does not build unde WinCE Unicode

open
nobody
None
5
2007-04-09
2007-04-09
Dale King
No

Trying to build CppUnit for WinCE in EVC4 with UNICODE turned on. Win32DynamicLibraryManager does not build because it calls things like ::LoadLibrary, ::GetProcAddress, and ::FormatMessage expecting them to use a standard char *, but with UNICODE turned on they are using wide strings.

In WinCE there is for example LoadLibraryA and LoadLibraryW. Then it does this:

#ifdef UNICODE
#define LoadLibrary LoadLibraryW
#else
#define LoadLibrary LoadLibraryA
#endif // !UNICODE

Discussion