i am working on camera capturte project.
i have to connect two camera simultaneously.
hMyWindow1 = capCreateCaptureWindow("", WS_CHILD | WS_VISIBLE, rect1.left, rect1.top,rect1.right,rect1.bottom, hw_video1, 0);
SendMessage(hMyWindow2,WM_CAP_DRIVER_CONNECT,0,0);
hMyWindow2 = capCreateCaptureWindow("", WS_CHILD | WS_VISIBLE, rect2.left, rect2.top,rect2.right,rect2.bottom, hw_video2, 0);
SendMessage(hMyWindow2,WM_CAP_DRIVER_CONNECT,0,0);
Now second window is also get connected to first web cam for changing it to second webcam i have to use
SendMessage(hMyWindow2,WM_CAP_DLG_VIDEOSOURCE,0,0);
but i want to perform this task programmatic so that two web cams got connected on two different window n user need not to select videosource via dialog (created by using
SendMessage(hMyWindow2,WM_CAP_DLG_VIDEOSOURCE,0,0);
)