如何获取连接相机的列表到计算机 [英] how to get list of connected cameras to computer

查看:85
本文介绍了如何获取连接相机的列表到计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得连接相机的清单。



我的代码是......

I want to get list of connected camera.

My code is...

    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));



当我使用capDriverGetCaps宏时它给出了一个错误

错误12错误C2059:语法错误:'')''

如何删除它?


When I use capDriverGetCaps macro it gives an error
Error 12 error C2059: syntax error : '')''
how to remove this?

推荐答案

您必须将 CAPDRIVERCAPS 变量的地址传递给 capDriverGetCaps()

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


这篇关于如何获取连接相机的列表到计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆