Re: gmodule for wince
- From: Tor Lillqvist <tml iki fi>
- To: Schneider Hanro <hanro gmx de>
- Cc: gtk-list gnome org
- Subject: Re: gmodule for wince
- Date: Sun, 26 Apr 2009 21:08:52 +0300
> But this file cause some problems with the functions GetProcAddress and LoadLibrary. The confusions
> results from the call of these functions of the wide char type GetProcAddressW and LoadLibraryW at
> the compile process. But the used strings are not wide char strings.
Are you compiling GLib with -DUNICODE (thus turning on the mapping of
LoadLibrary -> LoadLibraryW)? What made you think that is the correct
thing to do? It is not. No code in the GTK+ stack should be compiled
with -DUNICODE. The code calls the wide character versions of Win32
APIs explicitly in places where it makes sense.
> But Loadlibrary is available only as wide char function.
Oh. Well then let's just use the wide-character version on normal
Windows, too, even when passing fixed ASCII-only library names like
"kernel32.dll" (obviously changing those string literals to wide
character string literals in the process). No need to introduce ifdefs
for this.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]