problems with vfw and video capture driver

Status
Not open for further replies.

moises_l

Junior Member level 3
Joined
Oct 23, 2003
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
192
capcapturesingleframe c++

I am developing a video capture application in Visual C++. I am using vfw.h. When I use capGetDriverDescription, it doesn´t find any video driver. Does anyone know the problem
 


programming vfw capture

I had ever use VFW.May be the section next is of some use to you.

ghCapWnd = capCreateCaptureWindow((LPTSTR)TEXT("Video Window"),
WS_CHILD|WS_VISIBLE|WS_EX_DLGMODALFRAME,
0,0,//400,500,
rect1.Width(),rect1.Height(),
pWnd->GetSafeHwnd(),0);

ASSERT(ghCapWnd);
if(capDriverConnect(ghCapWnd,0))
{
capDriverGetCaps(ghCapWnd,&gCapDrvCaps,sizeof(CAPDRIVERCAPS));
if(gCapDrvCaps.fCaptureInitialized)
{
capPreviewRate(ghCapWnd,33);
capPreview(ghCapWnd,TRUE);//use the memory
}
else{
AfxMessageBox("Failure to initialize video card");
// AfxGetMainWnd()->PostMessage(WM_CLOSE);
}
}
else
{
AfxMessageBox("Failure to connect video card");
//AfxGetMainWnd()->PostMessage(WM_CLOSE);
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…