How to get chinese text from rtf .
-
Hi In my system not installed languagepack.when i paste chinese characters in rtf .. In sending i wrote this code... here m_chattext is rtf object. m_chattext.GetWindowText(m_Text); AfxMessageBox(m_Text); in messagebox the chinese characters are not displaying..its coming ???? how i can solve this problem ...plz tell...
#sanroop#
-
Hi In my system not installed languagepack.when i paste chinese characters in rtf .. In sending i wrote this code... here m_chattext is rtf object. m_chattext.GetWindowText(m_Text); AfxMessageBox(m_Text); in messagebox the chinese characters are not displaying..its coming ???? how i can solve this problem ...plz tell...
#sanroop#
-
do you have compiled your project as unicode ? if not, make sure that you use preprocessor definitions ( c++ page ) _UNICODE output (link page) - entry point symbol wWinMainCRTStartup further on you could use _T("") instead "" in your code hope it helps
-
i think you are correct perhaps you could use CEdit instead but if not keep in mind RichEditCtrl in Visual C++ 7.0 supports Unicode. To obtain Unicode strings from the RichEditCtrl box, use EM_GETTEXTEX message instead of GetDlgItemText. SendMessage( EM_GETTEXTEX, (LPARAM) &getTextEx, // GETTEXTEX structure (WPARAM) lpszWChar // output WCHAR array ); see also: http://easai.00freehost.com/unicode.html[^]