Am 22.02.2010 20:55, schrieb Andre Poenitz:

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

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

No, that's not Qt, but Windows, in msvcrt.h if memory serves right.

But Qt has only a short one defined ?

No, Qt uses the wchar_t of the platform for the to/fromWChar functions
to communicate with wchar_t based functions of the host system. On
Windows that's a 16 bit type, on *nix traditionally 32 bit.
QString is internally UTF-16 on all platforms.

So what do you propose? LyX is currently uncompilable using MSVC due to this 
issue.

This doesn't work although depends.exe says that the argument must be the type 
"unsigned short const *":
QString::fromWCharArray((unsigned short const *) &long_path[0]);

The error message is that fromWCharArray requires "const wchar_t *". So both error messages are orthogonal to each other.

-----

Enrico wrote:

> Does the attached patch help?

No the error message keeps the same.


regards Uwe

Reply via email to