Help => General => Topic started by: Szustarol on June 21, 2016, 12:16:38 pm
Title: Displaying text previously get by winapi [crash]
Post by: Szustarol on June 21, 2016, 12:16:38 pm
Hi i get a text from text field to wstring (text contains polish chars) GetWindowTextW(g_name, (LPWSTR)g_namestr.c_str(), GetWindowTextLength(g_name) + 1);
sadly, this: text.setString(g_namestr); or this: text.setString(g_namestr.c_str());
causes the app to crash. I need it to be wide string (displaying polish chars is a must), i know i can manually set a wide string to text by text.setString(L"Wide text"); but how do i do it with predefined text string?
Title: Re: Displaying text previously get by winapi [crash]
Post by: Laurent on June 21, 2016, 12:30:05 pm