void Cshipineditbox5Dlg::OnChangeEdit2()
{
CString METext;//定义cstring类对象,用于存放存放他所获取窗口中全部文本
char Count[6];//用来计算窗口中字符有多少行
int ncharNum,nlineNum;//用来计算字符个数,字符行数
m_MULTI_EDIT.GetWindowTextW();//获取多行编辑框文本
nlineNum=m_MULTI_EDIT.GetLineCount();//获得行数
ncharNum=METext.GetLength();//获得长度
itoa(ncharNum,Count,10);
m_char.SetWindowText(Count);
itoa(nlineNum,Count,10);
m_line.SetWindowText(Count);
}
新手啊,为什么提示m_char,m_line是未定义标识符呢?