void CStudyDlg::OnButton1() 
{         
CBitmap theBitmap;
CClientDC theDC(this);
         CDC memDC;
theBitmap.CreateCompatibleBitmap(&theDC,64,64);
theBitmap.LoadBitmap(IDB_BITMAP1);
memDC.CreateCompatibleDC(&theDC);
memDC.SelectObject(&theBitmap);
         theDC.BitBlt(0,0,64,64,&memDC,0,0,SRCCOPY);
}
运行后先报错,后便正常显示。这到底是怎么会事?