void CCFileDialog_CFileView::OnButton1()
{
 // TODO: Add your control notification handler code here
 CString m_szTmp;
  char buf[1000];
  CFileDialog dlg(TRUE,"mdl","*.txt");
  if(dlg.DoModal()==IDOK) {

   m_szEditText = dlg.GetPathName();
    CFile mfile;
     mfile.Open(dlg.GetPathName(), CFile::modeRead);
     mfile.Read(buf,sizeof(buf));
     m_szTmp = buf;
     //m_szEditText = m_szTmp;
     UpdateData(false);
     mfile.Close();
 }
 
}

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案