我在前面通过一些程序将文件的地址保存在EDIT BOX里如果EDIT BOX里的内容不是我想要的内容(比如为空或文件路径不存在时)我希望+个异常处理
弹出一个对话框来
该怎样处理啊?
void CEncodeDlg::OnCompress() 
{
CString tempfa,tempsa;
         GetDlgItemText(IDC_EDITFA,tempfa);
GetDlgItemText(IDC_EDITSA,tempsa);
LZARI Lzari;
if()//这里要怎样写才能使EDIT BOX里只有是文件路径时才执行下面的语句,否则弹出对话框
{
Lzari.Compress(tempfa,tempsa);
}
else
{
CError dlg;
dlg.DoModal();
}
CompressOK dlg;
dlg.DoModal();
}