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. getline in richedit...

getline in richedit...

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 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.
  • M Offline
    M Offline
    Manikandan
    wrote on last edited by
    #1

    Hi, I am using CRichEditCtrl to edit Unicode characters like Arabic, Chinese and Japanese. When I tried to get the Unicode values of the characters typed in as below I can able to get only the lower 2 bytes not the whole 4 bytes. UINT nChar = 0x0000; int nLineLength,nRead; CString strLine; for(int i = 0; i < m_cRich.GetLineCount(); i++) { nLineLength = m_cRich.LineLength(m_cRich.LineIndex(i)); nRead = m_cRich.GetLine(i,strLine.GetBuffer(nLineLength + 3), nLineLength + 1); strLine.ReleaseBuffer(nRead); for(int j=0;j

    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