[patch] qlibrary_win.cpp

Andy Goossens andygoossens at pandora.be
Fri Oct 10 17:54:15 CEST 2003


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.



More information about the kde-cygwin mailing list