Hello Everyone.
I am making an application for which i need to capture vdo from my webcam and preview it for this i have written following piece of code:
CODE
ghVidHwnd = capCreateCaptureWindow(NULL, WS_CHILD|WS_VISIBLE,lsRect.left,lsRect.top,(liXVid),(liYVid),(HWND)(vidVHwnd),(int)0);
.
.
capPreviewRate(ghVidHwnd,66);
capPreviewScale(ghVidHwnd,TRUE);
capPreview(ghVidHwnd,TRUE);
The problem is on preview vndo vdo appear momentarily(I guess just the first frame) and disappear. Please let me know what am i missing?
This post has been edited by sexyvirus: 11 May, 2008 - 04:38 AM