Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top