1 //QString to wchar_t: 2 const wchar_t * encodedName = reinterpret_cast<const wchar_t *>(fileName.utf16()); 3 4 //QString to char * (general case): 5 const char * tmp = str.toUtf8().constData(); 6 7 //wchar_t* to QString 8 wchar_t szMsg[100] = {0}; 9 _stpri...
constwchar_t * encodedName =reinterpret_cast<constwchar_t *>(fileName.utf16()); //QString to char * (general case): constchar * tmp = str.toUtf8().constData(); //wchar_t* to QString wchar_t szMsg[100] = {0}; _stprintf(szMsg,L"Connect [%s] failed!",ssid); ...
//QString to wchar_t: const wchar_t * encodedName = reinterpret_cast<const wchar_t *>(fileName.utf16()); //QString to char * (general case): const char * tmp = str.toUtf8().constData(); //wchar_t* to QString wchar_t szMsg[100] = {0}; _stprintf(szMsg,L"Connect [%s]...