I'm using a multiple document interface program which saves its files as bitmaps. I also want to load bitmaps, so I do this:
BOOL CImageDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
// TODO: Add your specialized creation code here
m_bmpImage.LoadBitmap(lpszPathName);
return TRUE;
}
For some reason, LoadBitmap always returns 0. Can someone help me? I just need to load an image.
BOOL CImageDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
// TODO: Add your specialized creation code here
m_bmpImage.LoadBitmap(lpszPathName);
return TRUE;
}
For some reason, LoadBitmap always returns 0. Can someone help me? I just need to load an image.