另外两个错误:error C2065: 'm_RichText' : undeclared identifier
error C2065: 'm_RichText' : undeclared identifiererror C2228: left of '.SetText' must have class/struct/union type
原程序是这样的:void CAboutDlg::OnOpenfile()
{
// TODO: Add your command handler code here
CString FileName, Buf;
CFileOpenSave OFile(TRUE,"*.txt","*.txt");
if(OFile.DoModal()==IDOK)
{
CFile file;
UINT FileSize;
FileName=OFile.GetPathName();
VERIFY(file.Open(FileName, CFile::modeRead));
FileSize=file.GetLength();
file.Read(Buf.GetBuffer(FileSize),FileSize);
m_RichText.SetText(Buf);
file.Close();
}
}我觉得没有语法错误啊,错哪了呢?