title: MFC bitmap using CPaintDC conversion?
body: <h2>Trying to convert this:</h2>
  
  <pre><code>HDC hdc = CreateCompatibleDC(NULL);
  HBITMAP cross = (HBITMAP)LoadImage(NULL, _("c:\\captureqwsx.bmp") ,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
  SelectObject(hdc, cross);
  HDC hdc_x = ::GetDC(HWND_DESKTOP);
  ::BitBlt(hdc_x,10,10,200,200,hdc,0,0,SRCCOPY);  
  ::ReleaseDC(HWND_DESKTOP,hdc_x);
  </code></pre>
  
  <h2>To this using CDC / DC   ???????????</h2>
  
  <pre><code>CPaintDC dc(this);
  CDC dcMem;
  
  dc.CreateCompatibleDC(&amp;dcMem);
  HBITMAP cross = (HBITMAP)LoadImage(NULL, _T("c:\\captureqwsx.bmp") ,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
  dc.SelectObject(cross);
  dc.BitBlt(10,10,200,200,&amp;dcMem,0,0,SRCCOPY);
  dc.ReleaseOutputDC();
  </code></pre>
  
  <hr>
  
  <h2>it aborts execution</h2>