![]() |
#2
ljt2010-10-03 16:34
|
int CMainFrame::ReadDataFromFile(void)
{
CFile file(_T("\\VC教程\\SIO.txt"),CFile::modeRead);
char cBuf[1024];
memset(cBuf,0,1024);
file.Read(cBuf,1024);
m_gstrReadText=cBuf;
m_gstrReadText="读取数据:"+m_gstrReadText;
file.Close();
Invalidate();
}
1>e:\mfcopttext\mfcopttext\mainfrm.cpp(112) : error C2065: 'm_gstrReadText' : undeclared identifier