Chirieac
May 13th, 2008, 01:34 PM
Hello! what I'm doing wrong:
hWndC = capCreateCaptureWindow(L"My Capture Window", WS_CHILD | WS_VISIBLE, 0, 0, 320, 240, (HWND) m_hCanvas, 0);
capDriverConnect(hWndC, 0);
capPreviewRate(hWndC, 30);
capPreview(hWndC, TRUE);
capSetCallbackOnFrame(hWndC, vfwOnFrame);
When I call this from a button: capGrabFrame(hWndC) I get run-time errors and the debugger show that this line of code is the problem.
Please help! Bye!
hWndC = capCreateCaptureWindow(L"My Capture Window", WS_CHILD | WS_VISIBLE, 0, 0, 320, 240, (HWND) m_hCanvas, 0);
capDriverConnect(hWndC, 0);
capPreviewRate(hWndC, 30);
capPreview(hWndC, TRUE);
capSetCallbackOnFrame(hWndC, vfwOnFrame);
When I call this from a button: capGrabFrame(hWndC) I get run-time errors and the debugger show that this line of code is the problem.
Please help! Bye!