这个是打开文件的代码
void CMediaPlayDlg::OnOpen() 
{
// TODO: Add your control notification handler code here
char szFileFilter[]=
"Mp3 File(*.mp3)|*.mp3|"
"Wma File(*.wma)|*.wma|"
"Video File(*.dat)|*.dat|"
"Wave File(*.wav)|*.wav|"
"AVI File(*.avi)|*.avi|"
"Movie File(*.mov)|*.mov|"
"Media File(*.mmm)|*.mmm|"
"Mid File(*.mid;*,rmi)|*.mid;*.rmi|"
"MPEG File(*.mpeg)|*.mpeg|"
"All File(*.*)|*.*||"; CFileDialog dlg(TRUE,NULL,NULL,OFN_HIDEREADONLY,szFileFilter);
if(dlg.DoModal()==IDOK){
CString PathName=dlg.GetPathName();
PathName.MakeUpper();
m_ActiveMovie.SetFileName(PathName);
}

}
打开文件时出现一个框出现一个对换框 下边有3个按妞 分别是终止 重试 忽略
上边的英文是Debug Assertion:Failed
 Program : F:\123\MediaPlay\Debug\MediaPlay.exe
 Line : 345
 For information on how your program can cause assertion failure,see the
 Visual C++ domcumentation on asserts
(Press Retry to debug the application)