how to use WINCAP functions
-
HI I am making a screen capturing project in visual c++. I am having problem in using the library files of WINCP. how should i implment the functions in my project. How should i start. THANK U!! I require ur help
sarmed wrote: I am having problem in using the library files of WINCP. I am not familar with this API. From whence does it come? In any case, why not just use a few lines of MFC code, like:
HDC hDC = GetWindowDC(pWnd->GetSafeHwnd());
CDC dc;
dc.Attach(hDC);
CDC dcMem;
dcMem.CreateCompatibleDC(&dc);
CRect rc;
pWnd->GetWindowRect(&rc);
CSize sz(rc.Width(), rc.Height());
bm.CreateCompatibleBitmap(&dc, sz.cx, sz.cy);
CBitmap bm;
CBitmap *bmOld = dcMem.SelectObject(&bm);
dcMem.BitBlt(0, 0, sz.cx, sz.cy, &dc, 0, 0, SRCCOPY);
// use bm.m_hObject here
dcMem.SelectObject(bmOld);
bm.Detach();
ReleaseDC(dc.Detach());
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown