This project has moved and is read-only. For the latest updates, please go here.

windows Form problem finding the source camera

Sep 12, 2013 at 9:03 AM
am trying to create a windows form application that reads the barcode of the product from the laptop webcam or the windows table cam.

when ever i call the below function i get a window that asks me to select the camera source and then nothing happened and the else statement of this if get executed.

i even try the demo provided and it gives the same problem, any suggestions please

If SendMessage(hHwnd, WM_CAP_DRIVER_CONNECT, DeviceID, 0) <> 0 Then
Sep 12, 2013 at 7:05 PM
I have no concrete idea. But you can try other device ids. The range is from 0 to 9.
Sep 13, 2013 at 7:15 AM
No, did not work i tried all the number , only the DeviceID =0 will open the windows that asks for the video Source
Sep 15, 2013 at 8:26 PM
Do you have a chance to try the AForge based demo?
Sep 16, 2013 at 7:25 AM
Not yet.from Where can I download it ?
Sep 16, 2013 at 8:25 PM
Same location like the WinForms demo.
Sep 21, 2013 at 1:35 PM
Thank you a lot. i works like a charm