0
Hi again
Bechir Bejaoui,
I have tried the code you suggested in http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx page and it really helped me. Thank you so much.
But, I want to ask one last question.
With little bit searching on the net, I found some code and I can get the GUID of the webcam attached to the computer. I have three webcams attaced to my computer, and for example, one of the GUID is @device:pnp:\\?\usb#vid_05a9&pid_4519#5&1fa5549f&0&4#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global and I need to place this GUID somewhere in your code. But I cant really figure where to do so. I think I should point this GUID to the SendMessage function:
SendMessage(hHwnd, WM_CAP_DRIVER_CONNECT, DeviceID, 0)
but where? Because this is the place where Windows wants me to select the webcam manually. Since I can get the GUID of webcam, I dont want to select it but to be selected by the program automatically.But how?
Any advice?
Thanks again
0
you can hide this dialog box and connect directly to you device if it is detected by the system of corse, all what you need is a little rectification of the code
0
HiBechir Bejaoui,
Thanks for the response. But what I need is that the user must select the webcam device from the program, not via seperate window or select device dialog. I want to integrate webcam selection into the program. Therefor I need a list of webcams attached and connect the webcam device to a picturebox or something.
Thanks
0
OK, then read my both articles about the issue
http://www.c-sharpcorner.com/UploadFile/yougerthen/610262008064756AM/6.aspx
http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx
If you're staisfied then mark the question as answered and dn't forget give your rates and suggestions about the both articles ;-}