Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vc上LoadBitmap的問題

0 views
Skip to first unread message

㊣大魔王

unread,
May 5, 1997, 3:00:00 AM5/5/97
to

我用對話盒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

0 new messages