Advertisement
asqapro

ScreenRead2

Oct 16th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. IDirect3DDevice9* g_pd3dDevice = NULL;
  2. IDirect3DSurface9* pSurface = NULL;
  3. g_pd3dDevice->CreateOffscreenPlainSurface(ScreenWidth, ScreenHeight, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &pSurface, NULL);
  4.  
  5. HDC ava_dc = NULL;
  6. pSurface->GetDC(&ava_dc); //crashes here
  7. cout << "here" << endl;
  8. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement