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 get chinese text from rtf .

How to get chinese text from rtf .

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 Posts 2 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... 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#

    D 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... 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#

      D Offline
      D Offline
      dan o
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • D dan o

        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

        J Offline
        J Offline
        johnalek
        wrote on last edited by
        #3

        no sir its not coming....

        #sanroop#

        D 1 Reply Last reply
        0
        • J johnalek

          no sir its not coming....

          #sanroop#

          D Offline
          D Offline
          dan o
          wrote on last edited by
          #4

          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[^]

          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