Marco Hung
2007-09-05 03:54:55 UTC
Hi All,
I've created a MFC project in MBCS. I need to show some set special characters ( ASCII code > 128) in a CStatic controls. It shows correctly in all English locale window. However all those special character becames "?" in non-English window. How to solve this problem? Here's part of my source code
void MySprcialCharacterDlg::OnUpdate()
{
TCHAR stringToShow[10];
ZeroMemory( stringToShow, sizeof(stringToShow) );
stringToShow[0] = 129;
stringToShow[1] = 130;
stringToShow[2] = 131;
stringToShow[3] = 132;
stringToShow[4] = 133;
stringToShow[5] = 134;
stringToShow[6] = 135;
stringToShow[7] = 136;
stringToShow[8] = 137;
::SetWindowText( GetDlgItem(IDC_STATIC_SPECIAL_CHAR), stringToShow );
}
Many thx.
Marco
I've created a MFC project in MBCS. I need to show some set special characters ( ASCII code > 128) in a CStatic controls. It shows correctly in all English locale window. However all those special character becames "?" in non-English window. How to solve this problem? Here's part of my source code
void MySprcialCharacterDlg::OnUpdate()
{
TCHAR stringToShow[10];
ZeroMemory( stringToShow, sizeof(stringToShow) );
stringToShow[0] = 129;
stringToShow[1] = 130;
stringToShow[2] = 131;
stringToShow[3] = 132;
stringToShow[4] = 133;
stringToShow[5] = 134;
stringToShow[6] = 135;
stringToShow[7] = 136;
stringToShow[8] = 137;
::SetWindowText( GetDlgItem(IDC_STATIC_SPECIAL_CHAR), stringToShow );
}
Many thx.
Marco