void CShipinDlg::OnScan()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CFileDialog fileDlg(TRUE);
fileDlg.m_ofn.lpstrFilter="All Files(*.avi)\0*.avi\0\0";
fileDlg.m_ofn.lpstrDefExt="*.avi";
//CString m_open;
CString m_filename;
if(IDOK==fileDlg.DoModal())
{
//CFile file(fileDlg.GetFileName(),CFile::modeRead); //这是一个无用语句,去掉
//m_open=fileDlg.GetPathName();//这个也没用,去掉
m_filename=fileDlg.GetFileName();
UpdateData(FALSE);
}
ShellExecute(NULL,"open",m_filename,NULL,"e:\\",NULL);
}
报错可能是和CFile语句有关