getline in richedit...
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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