Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Casting LPWSTR to QString
Paytam last edited by
how can I cast LPWSTR to QString in QT?
(I want to use the QString to show the message in QmessageBox)
LPWSTR is a pointer to 16-bit Unicode characters (http://msdn.microsoft.com/en-us/library/cc230355.aspx ) So, you probably want QString::fromUtf16()