Unicode Programming
-
I am programming with unicode.And I don't know how to send a character with the code > 0xFF.Anyone know it. Thank you very much...:)
-
I am programming with unicode.And I don't know how to send a character with the code > 0xFF.Anyone know it. Thank you very much...:)
Hi, I don't know what do you mean with "...how to send a character..." but if what you want is assign a UNICODE character to a variable, this is how
TCHAR c = 0x0100;
Now if you are talking about UNICODE strings, use BSTR or one of the classes that encapsulate it, CComBSTR or _bstr_t. Fabian
-
Hi, I don't know what do you mean with "...how to send a character..." but if what you want is assign a UNICODE character to a variable, this is how
TCHAR c = 0x0100;
Now if you are talking about UNICODE strings, use BSTR or one of the classes that encapsulate it, CComBSTR or _bstr_t. Fabian
Sorry for my ambiguous question.I want to send a message WM_CHAR with a code > 0xFF but when I use the following code : wParam = 0x01ff It send a character with code = 0xff.
-
Sorry for my ambiguous question.I want to send a message WM_CHAR with a code > 0xFF but when I use the following code : wParam = 0x01ff It send a character with code = 0xff.
-
I am programming with unicode.And I don't know how to send a character with the code > 0xFF.Anyone know it. Thank you very much...:)
Silly question, but do you have _UNICODE and UNICODE defined? If you don't, TCHAR will equate to char..... and: TCHAR t = 0x01FF; SendMessage(WM_CHAR, (WPARAM)t, NULL); Will truncate t to 0xFF when stored in a char varible. Try being explicte about what character set you are sending - wchar_t t = 0x01FF; SendMessage(WM_CHAR, (WPARAM)t, NULL);