> >class Q_CORE_EXPORT QString
> >{
> >    ...
> >    static QString fromWCharArray(const wchar_t *, int size = -1);
> >    ...
> >}
> >
>The function is new in 4.2, so one possibility is that you compile
against
>4.2 headers but link against 4.1 libraries.

No, that's not the problem.

>Export might be an issue, too. Checking the library with 'depends.exe'
>might give a clue.


Depends.exe says:

"class QString QString::fromWCharArray(unsigned short const *,int)"

So, qt defines/typedefs wchar_t as unsigned short ??

A simple google search says 

" Pretty much every important string function has both a
  narrow and a wide string version, and every one would have to be
  wrapped in a #if USE_WCHAR_T block otherwise."

But Qt has only a short one defined ? 

(it's out of my league now...)

>Andre'

Vincent

Reply via email to