Bonjour,

j'utilise WIA pour capturer une image a partir de ma webcam dans un windows form.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 Dim class1 As CommonDialogClass = New CommonDialogClass
        Dim d As Device
        Try
            d = class1.ShowSelectDevice(WiaDeviceType.VideoDeviceType, True, False)
        Catch ex As Exception
            Debug.WriteLine(ex.ToString())
        End Try
Mais voila l'erreur que j'ai tout le temps en retour :

Une exception de première chance de type 'System.Runtime.InteropServices.COMException' s'est produite dans
System.Runtime.InteropServices.COMException (0x80210015): Exception de HRESULT : 0x80210015
à WIA.CommonDialogClass.ShowSelectDevice(WiaDeviceType DeviceType, Boolean AlwaysSelectDevice, Boolean CancelError)
à WindowsApplication1.Form1.SelectDevice() dans C:\Documents and Settings\Utilisateur\Mes documents\Visual Studio 2005\Projects\Pinboard\Pinboard\Form1.vb:ligne 17