Thread: How to get USB ports connected to multiple cameras using C/C++ program?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Registered User
    Join Date
    Nov 2003
    Posts
    12
    I didn't get any error report, but, anyhow, I got the solution after combining your code and WAI example codes. However, I got a new problem. I at moment have three wireless logitech webcams. When running the following program, it takes the same picture from the same camera. I suspect because the program has no time sleep to wait for the camera channels changed before taking a picture. On the other hand, the picture is very faint, how can I adjust its brightness.

    Here is my code:

    Code:
    Private Sub Command1_Click()
    Dim i As Integer
    
    For i = 1 To DeviceManager1.DeviceInfos.Count
        MsgBox DeviceManager1.DeviceInfos(i).Properties("Name").Value & vbCrLf & _
               "(" & DeviceManager1.DeviceInfos(i).DeviceID & ")"
               Dim picName As String
               picName = "pic " + CStr(i) + ".jpg"
               
    Set oImage = DeviceManager1.DeviceInfos(i).Connect.ExecuteCommand(wiaCommandTakePicture).Transfer
    
    oImage.SaveFile picName
    
    Next
    
    End Sub
    Last edited by davidsk; 12-05-2003 at 09:57 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple Ports using Sockets
    By mmondok in forum C Programming
    Replies: 1
    Last Post: 04-14-2003, 09:36 PM
  2. Multiple Windows, One Program?
    By skyruler54 in forum C++ Programming
    Replies: 3
    Last Post: 10-12-2002, 08:29 PM
  3. multiple runs of a program
    By unregistered in forum Linux Programming
    Replies: 5
    Last Post: 03-15-2002, 07:18 AM
  4. Disabling multiple instances of a program
    By xds4lx in forum Windows Programming
    Replies: 6
    Last Post: 03-06-2002, 02:21 AM
  5. program that uses multiple funtions
    By mike in forum C++ Programming
    Replies: 5
    Last Post: 02-09-2002, 08:44 AM