void CT1Dlg::OnBtnBrowe()
{
// TODO: Add your control notification handler code here
CFileDialog dlg(TRUE,NULL,NULL,OFN_FILEMUSTEXIST,_T("*.AVI|*avi"),this);
if( dlg.DoModal()==IDOK)
SetDlgItemText(IDC_EDT_FILENAME,dlg.GetPathName());
}void CT1Dlg::OnBtnPlayfile()
{
// TODO: Add your control notification handler code here
CString strFile;
GetDlgItemText(IDC_EDT_FILENAME,strFile); if(m_animate.Open(strFile))
m_animate.Play(0,-1,-1);
else
AfxMessageBox(_T("无法加载文件"));
}
void CT1Dlg::OnBtnPlayres()
{
// TODO: Add your control notification handler code here
m_animate.Open(IDR_AVI1);
m_animate.Play(0,-1,-1);
}
问题是
m_animate.Open(strFile)的值为零
请大家帮帮忙看看
{
// TODO: Add your control notification handler code here
CFileDialog dlg(TRUE,NULL,NULL,OFN_FILEMUSTEXIST,_T("*.AVI|*avi"),this);
if( dlg.DoModal()==IDOK)
SetDlgItemText(IDC_EDT_FILENAME,dlg.GetPathName());
}void CT1Dlg::OnBtnPlayfile()
{
// TODO: Add your control notification handler code here
CString strFile;
GetDlgItemText(IDC_EDT_FILENAME,strFile); if(m_animate.Open(strFile))
m_animate.Play(0,-1,-1);
else
AfxMessageBox(_T("无法加载文件"));
}
void CT1Dlg::OnBtnPlayres()
{
// TODO: Add your control notification handler code here
m_animate.Open(IDR_AVI1);
m_animate.Play(0,-1,-1);
}
问题是
m_animate.Open(strFile)的值为零
请大家帮帮忙看看
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货