请教大虾关于图像读入的问题
Doc::OnOpenDocument(LPCTSTR lpszPathName)
{ DeleteContents();
CWaitCursor wait;
BOOL bSuccess = m_Dib.Load(lpszPathName);//图像读入程序,没错的
if (!bSuccess)
ReportSaveLoadException(lpszPathName, NULL, FALSE, AFX_IDP_FAILED_TO_OPEN_DOC);
SetPathName(lpszPathName);
SetModifiedFlag(FALSE);
return bSuccess;
}
功能:打开一个图像文件,编译时候通过,但是执行时打开图像文件时候出现
dubug Assertion Failed ...File:viewscrl.cpp Line:134.
调试时,OnOpenDocument能够返回1,但是还没执行到ondraw就出错了,不知道这其中还要经过哪些步骤,才能正确显示图像