This is my test with MessageBoxW:
Result should be "TestingString"
MessageBoxA only shows the first letter.Code:char *messs = (char*)LockResource(hGlobal3); MessageBox(NULL, (LPCTSTR)messs, "bonjour", MB_OK); MessageBoxW(NULL, (LPCWSTR)messs, (LPCWSTR)"bonjour", MB_OK);
MessageBoxW shows the incomplete "Testin"-characters with strange things around it.
![]()




Reply With Quote