After testing with multiple cameras attached, I noticed that the last program would let you choose the source when the program starts. In order to allow the user to choose whilst the program is running we have to show a dialog - if the driver supports showing dialogs. We can find out if the driver supports showing dialogs by getting a
...
Now we have the capture window created, and we can enumerate the drivers we might as well try to connect them up so that we can see something.
If we look at the help topic "
Previewing video" it says to do this (in C):
capPreviewRate(hWndC, 66); // rate, in milliseconds
capPreview(hWndC, TRUE); // starts preview...