Click here to Skip to main content
15,924,317 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to get list of connected camera.

My code is...
C++
    hMyWindow = capCreateCaptureWindow("", WS_CHILD | WS_VISIBLE|WM_CAP_DLG_VIDEODISPLAY, 10, 40, ImageX,ImageY,this->m_hWnd,1); 
capDriverConnect(hMyWindow,0);
capDriverGetCaps(hMyWindow,CAPDRIVERCAPS,sizeof(CAPDRIVERCAPS));

When I use capDriverGetCaps macro it gives an error
Error 12 error C2059: syntax error : ')'
how to remove this?
Posted
Updated 13-Dec-12 23:12pm
v2

1 solution

You must pass the address of a CAPDRIVERCAPS variable to capDriverGetCaps():
CAPDRIVERCAPS caps;
capDriverGetCaps(hMyWindow, &caps, sizeof(CAPDRIVERCAPS));
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900