我想使用avicap32.dll查找网络摄像头名称 [英] I want to find webcam name using avicap32.dll

查看:362
本文介绍了我想使用avicap32.dll查找网络摄像头名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我在桌面应用程序中使用网络摄像头.
我在vb.net项目中使用了两个摄像头.
而且我想在我的项目中打开FORM1时启用web-cam-1,如果在这种情况下打开FORM2,则应启用web-cam-2.
有可能吗?
如果是,那么请帮助我.
谢谢..

Hi I am using webcam in my desktop application.
i am using two webcam in my vb.net project.
and i want that in my project when i open FORM1 then web-cam-1 should be active and if i open FORM2 in that case web-cam-2 should be active.
is it possible?
if yes then please help me.
Thanks is Advance..

推荐答案

尝试一下:

声明功能capGetDriverDescriptionA库"avicap32.dll"(ByVal wDriver为简称,_
ByVal lpszName作为字符串,ByVal cbName作为整数,ByVal lpszVer作为字符串,_
ByVal cbVer As Integer)As Boolean



用法:

Dim strName As String =空格(100)
Dim strVer As String =空格(100)
Dim bReturn为布尔值
Dim x As Integer = 0

''
bReturn = capGetDriverDescriptionA(x,strName,100,strVer,100)

msgbox(设备名称="&strName)
Try this :

Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short, _
ByVal lpszName As String, ByVal cbName As Integer, ByVal lpszVer As String, _
ByVal cbVer As Integer) As Boolean



Usage :

Dim strName As String = Space (100)
Dim strVer As String = Space (100)
Dim bReturn As Boolean
Dim x As Integer = 0

''
bReturn = capGetDriverDescriptionA (x, strName, 100, strVer, 100)

msgbox("Device name ="& strName)


同样的问题,有人可以解决吗?
Same Problem I getting can anyone solve??


这篇关于我想使用avicap32.dll查找网络摄像头名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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