[Qt-interest] Git repo not building.

Constantin Makshin dinosaur-rus at users.sourceforge.net
Tue Jun 9 21:50:04 CEST 2009


sizeof(wchar_t) = 2 on Windows, so it's safe to do these casts.

On Tue, 09 Jun 2009 14:43:07 +0400, JD Guzman  
<lostinthecode at googlemail.com> wrote:
> Hello all this may be an intermittent problem that you may already be
> aware of, but I just updated my source and tried to build but received
> the following error:
>
> c:\qt\qt\src\gui\util\qdesktopservices_win.cpp(118) : error C2664:
> 'QString::fromUtf16' : cannot convert parameter 1 from 'wchar_t [520]'
> to 'const ushort *' Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style case or function-style cast
>
> c:\qt\qt\src\gui\util\qdesktopservices_win.cpp(118) : error C2664:
> 'RegOpenKeyExW' : cannot convert parameter 2 from 'const ushort *' to
> 'LPCWSTR'  Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style case or function-style cast
>
> I am using msvc as my build environment.

-- 
Constantin "Dinosaur" Makshin



More information about the Qt-interest-old mailing list