我不知道这种方法行不行,我只用过单个的。因为我很穷,买不起两个摄像头啊首先枚举出有那些设备 char szDeviceName[80]; char szDeviceVersion[80];for (wIndex = 0; wIndex < 10; wIndex++) { if (capGetDriverDescription (wIndex, szDeviceName, sizeof (szDeviceName), szDeviceVersion, sizeof (szDeviceVersion)) { // Append name to list of installed capture drivers // and then let the user select a driver to use. } } 然后呢,连接设备,capDriverConnect。 MSND上讲了怎么使用视频。你自己看看吧。也许能解决你的问题。
char szDeviceName[80];
char szDeviceVersion[80];for (wIndex = 0; wIndex < 10; wIndex++)
{
if (capGetDriverDescription (wIndex, szDeviceName,
sizeof (szDeviceName), szDeviceVersion,
sizeof (szDeviceVersion))
{
// Append name to list of installed capture drivers
// and then let the user select a driver to use.
}
} 然后呢,连接设备,capDriverConnect。
MSND上讲了怎么使用视频。你自己看看吧。也许能解决你的问题。