Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to show in messagebox same chinese text from rtf .

How to show in messagebox same chinese text from rtf .

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johnalek
    wrote on last edited by
    #1

    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#

    M R 2 Replies Last reply
    0
    • J johnalek

      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#

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      Define UNICODE in the preprocessor definitions of project settings to make it support Unicode.


      Maxwell Chen

      1 Reply Last reply
      0
      • J johnalek

        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#

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          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

          M Offline
          M Offline
          Maxwell Chen
          wrote on last edited by
          #4

          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

          R 1 Reply Last reply
          0
          • M 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

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            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Ã<-·´¯`·.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups