我用對話盒load bmp檔,以下是片段程式
CFileDialog dlg(TRUE, "bmp", "*.bmp");
if (dlg.DoModal() != IDOK) return;
CFile file;
file.Open(dlg.GetPathName(), CFile::modeRead);
BITMAP bm; // Windows BITMAP data structure; see Win32 help
if (m_pdcDisplayMemory->GetSafeHdc() == NULL) {
if((m_pBitmap->LoadBitmap((LPCTSTR)file.GetFilePath()))==0)
﹛@ )^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ 但return 都是0
不知程式可有寫錯
或有它法可解決
thanx
--
[m [1;31m※ 來源:‧輔大資工謠言站 bbs.csie.fju.edu.tw‧[FROM: 140.136.206.114] [m