请求大家帮帮忙啊

来源:互联网 发布:js 调用支付宝app 编辑:程序博客网 时间:2024/05/03 17:53

void CDlg8_1::OnBnClickedSave()
{
   UpdateData(true);
   CStdioFile File;
   if(File.Open("a.txt",CFile::modeCreate|CFile::modeWrite|CFile::typeText)==0)
   {
    MessageBox("创建文件a.txt失败");
    return;
   }
   File.WriteString(m_Edit);
   File.SetLength(File.GetPosition());
   File.Close();
   OpenFile->EnableWindow(true);
   UpdateData(false);
}

void CDlg8_1::OnBnClickedOpen()
{
   static int nShowControl=SW_SHOW;
   WinExec("notepad a.txt",SW_SHOW); 
}

 

发生这样的错误:

error C2227: left of '->EnableWindow' must point to class/struct/union
Error executing cl.exe.

怎么改正啊?

原创粉丝点击