Home > Software engineering >  There are two cameras on a computer, how to use vb code by two buttons, call these two cameras
There are two cameras on a computer, how to use vb code by two buttons, call these two cameras

Time:10-04

Has two cameras on a computer, how to use vb code by two buttons, calling the two cameras this is the first call, call the second how to call

CodePudding user response:

No one, you know? Vb great god

CodePudding user response:

WM_CAP_DRIVER_CONNECT
The WM_CAP_DRIVER_CONNECT message connects a window to capture a capture driver. You can send this message to explicitly or by using The capDriverConnect macro.

WM_CAP_DRIVER_CONNECT
WParam=(wParam) (iIndex);
LParam=0 l;
The Parameters

IIndex

The Index of the capture driver. The Index can range from 0 through 9.

The Return Values

Returns TRUE if successful, or FALSE if the specified the capture driver always be connected to the capture window.

Few

Connecting a capture driver to a capture window automatically disconnects the any previously connected the capture driver.

SendMessage HWND, WM_CAP_DRIVER_CONNECT, 1, 0 can change it, I don't use the normal Windows 7

CodePudding user response:

Call in DirectShow way
  • Related