CRichEditCtrl逐行读取问题
编写如下代码可以从CEDIT中逐行读取,但CRichEditCtrl却总死机,
哪位高手可指教一下哪有问题.CEDIT和CRichEditCtrl为什么有区别?
m_sNyme = "";
for ( iLine = 0;iLine < m_Edit_Nym.GetLineCount();iLine++){
iIndex = m_Edit_Nym.LineIndex(iLine);
iLineSize = m_Edit_Nym.LineLength(iIndex);
strText.Empty();
lp_cs = strText.GetBuffer( iLineSize );
iGetSize = m_Edit_Nym.GetLine(iLine ,lp_cs , iLineSize );
strText.ReleaseBuffer();
m_sNyme = m_sNyme + strText;
m_sNyme = m_sNyme + ";" ;
}