I have a problem with Cyrillic Characters in C++ MFC (Visual Studio 6)
-
Hello, I have to customize a old project to work with Cyrillic Characters. I have the following code:
CString MyText;
TCHAR buf[512];
SendMessage(lCurHwnd,WM_GETTEXT,sizeof(buf)/sizeof(TCHAR),(LPARAM)(void*)buf);
MyText.Format("%s",buf);If the buf contains Cyrillic Characters (like Привет) this will be replaced with ??????. Do you know a way to solve this problem? This is my first meeting :) with Cyrillic Characters in a project and I do not know how to correct it. I am using Windows XP, SP2, Visual Studio in English. Thank you!
-
Hello, I have to customize a old project to work with Cyrillic Characters. I have the following code:
CString MyText;
TCHAR buf[512];
SendMessage(lCurHwnd,WM_GETTEXT,sizeof(buf)/sizeof(TCHAR),(LPARAM)(void*)buf);
MyText.Format("%s",buf);If the buf contains Cyrillic Characters (like Привет) this will be replaced with ??????. Do you know a way to solve this problem? This is my first meeting :) with Cyrillic Characters in a project and I do not know how to correct it. I am using Windows XP, SP2, Visual Studio in English. Thank you!
You should build for unicode i guess.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <