I have made today a small vfw (video for windows) application.
Because there is a lack of vfw examples on the net i wanted to give you this.
It is a simple win32 program with five buttons.
First you need a webcam connected with your pc. After that, start the program, press 'Start'. Now should an extra video window appear, this can take several seconds.
If nothing happens, you can change the video source with 'Source...' and the resolution with 'Config...'.
'Stop' is stopping the camera. And 'Exit' is closing the application.
Works great with my USB webcam.
Have fun.