CameraPlugged
Top  Previous  Next

Description

This event is fired each time a camera gets connected to the 1394 bus.


Syntax


[VB]
Private Sub objActiveDcam_CameraPlugged(ByVal Camera As Integer)


[C/C++]
HRESULT Fire_CameraPlugged(SHORT Camera);


Data Types
[VB]

Camera: Integer  


Parameters
[C/C++]

Camera  
The index of the camera that has been connected.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the CameraPlugged and CameraUnplugged events to detect changes on the 1394 bus:

Private Sub ActiveDcam1_CameraPlugged(ByVal Camera As Integer)  
Dim Msg As String  
Msg = "Camera #" + Str(Camera) + " has been connected"  
MsgBox Msg  
End Sub  
 
Private Sub ActiveDcam1_CameraUnplugged(ByVal Camera As Integer)  
Dim Msg As String  
Msg = "Camera #" + Str(Camera) + " has been disconnected"  
MsgBox Msg  
End Sub  
 

Remarks

The CameraPlugged event will only be raised, if DCAM 1394 Camera Driver is installed for the camera being connected. See Driver Setup for more details.