How to show in messagebox same chinese text from rtf .
-
Hi In my system not installed languagepack.when i paste chinese characters in rtf .. In sending i wrote this code... m_chattext.GetWindowText(m_Text); AfxMessageBox(m_Text); here m_chattext is rtf object. 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... m_chattext.GetWindowText(m_Text); AfxMessageBox(m_Text); here m_chattext is rtf object. in messagebox the chinese characters are not displaying..its coming ???? how i can solve this problem ...plz tell...
#sanroop#
Define
UNICODE
in the preprocessor definitions of project settings to make it support Unicode.
Maxwell Chen
-
Hi In my system not installed languagepack.when i paste chinese characters in rtf .. In sending i wrote this code... m_chattext.GetWindowText(m_Text); AfxMessageBox(m_Text); here m_chattext is rtf object. in messagebox the chinese characters are not displaying..its coming ???? how i can solve this problem ...plz tell...
#sanroop#
First of all, make sure the appropriate language is installed on your machine. Next to it, make sure that you are making an Unicode build and not an ANSI build. Remove the
_MBCS
preprocessor directive and add the preprocessor directive:#define _UNICODE //with the underscore.
This will implicitly add the preprocessor directive:
#define UNICODE //no underscore. (this is for windows api functions)
So, the compiler will make wide calls for both CRT functions and windows api functions and your application will be able to understand Unicode.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
modified on Friday, January 04, 2008 11:26:44 AM
-
First of all, make sure the appropriate language is installed on your machine. Next to it, make sure that you are making an Unicode build and not an ANSI build. Remove the
_MBCS
preprocessor directive and add the preprocessor directive:#define _UNICODE //with the underscore.
This will implicitly add the preprocessor directive:
#define UNICODE //no underscore. (this is for windows api functions)
So, the compiler will make wide calls for both CRT functions and windows api functions and your application will be able to understand Unicode.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
modified on Friday, January 04, 2008 11:26:44 AM
This blog is even interesting! (Sorry that my system is having problem to paste texts onto CodeProject. I can only type raw URL without a hyperlink.) http://blogs.msdn.com/oldnewthing/archive/2004/02/12/71851.aspx
Maxwell Chen
-
This blog is even interesting! (Sorry that my system is having problem to paste texts onto CodeProject. I can only type raw URL without a hyperlink.) http://blogs.msdn.com/oldnewthing/archive/2004/02/12/71851.aspx
Maxwell Chen
Yes, I've read that years ago. If I remember it right, Jeffery Ritcher's book has a very detailed explanation of this very interesting stuff. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.