LPCWSTR path; void WinApiLibrary::StartProcess(QString name) { path = name.utf16(); CreateProcess(path, NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); }
C: \ kursovaya \ smc \ winapilibrary.cpp: 21: error: invalid conversion from 'const ushort * {aka const short unsigned int *}' to 'LPCWSTR {aka const wchar_t *}' [-fpermissive] path = name.utf16 ();
This code worked in Qt 4.8, but now I have Qt 5.2, and this code does not work. What happened to this guy?
qt
user3132719
source share