Pointer to the SAFEARRAY containing available modes
Return Values
S_OK
Success
E_FAIL
Failure.
Example
This VB example initializes a combo box with the descriptions of available video modes and uses it to select a specific mode:
Private Sub Form_Load()
ModeLst = ActiveDcam1.GetModeList
For i = 0 ToUBound(ModeLst)
Combo1.AddItem (ModeLst(i))
Next
Combo1.ListIndex = 0
ActiveDcam1.Acquire = True
End Sub
Private Sub Combo1_Click()
ActiveDcam1.Mode = Combo1.ListIndex
End Sub
This MFC example fills out a combo box with available video modes: