[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-cygwin
Subject:    Re: [patch] qlibrary_win.cpp
From:       Andy Goossens <andygoossens () pandora ! be>
Date:       2003-10-10 14:54:15
[Download RAW message or body]

On Friday 10 October 2003 16:23, Andy Goossens wrote:
> On Friday 10 October 2003 00:24, Thiago A. Corrêa wrote:
> > QT_WA( LoadLibraryA( filename.latin1() ) , LoadLibraryW(
> > filename.ucs2() ) );
>
> Hmmm... I tried that. The latin1() works fine, but the ucs2() doesn't.
> Compiler complains with:
>
> passing `const short unsigned int *' as argument 1 of (...) const WCHAR *

Okay, never mind... Those functions were in the reverse order :-)

It should be:
QT_WA( LoadLibraryW(filename.ucs2() ), LoadLibraryA( filename.latin1() ) );

-- 
// Andy Goossens

// Quote of the moment:
Fortune finishes the great quotations, #9

	A word to the wise is often enough to start an argument.

_______________________________________________
kde-cygwin mailing list
kde-cygwin@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-cygwin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic