robertb_NZ
Well-known member
I use VS2008 with Visual Basic and VB.Net. I am writing an application to save videos from a webcam, and I've found several examples that provide the basic functionality so that I can start and stop the webcam, and save a video as a .avi file. However my interface is still clunky: when video capture starts following
SendMessage(hWnd, WM_CAP_SEQUENCE, 0, 0)
then the window is locked and the [Stop Capture] button doesn't function, so I need to exit the window to stop capture. The documentation at Video Capture has a lot of methods that look useful, and I think that I need to link up a callback function to allow [Stop Capture] to function, but I can't figure out from this documentation how to send a WM_CAP_SET_CALLBACK_VIDEOSTREAM message to do this.
Is there any general tutorial that will cover all of the messages in AVICAP32.dll, and show me how to implement them in VB?
Thank you,
Robert
SendMessage(hWnd, WM_CAP_SEQUENCE, 0, 0)
then the window is locked and the [Stop Capture] button doesn't function, so I need to exit the window to stop capture. The documentation at Video Capture has a lot of methods that look useful, and I think that I need to link up a callback function to allow [Stop Capture] to function, but I can't figure out from this documentation how to send a WM_CAP_SET_CALLBACK_VIDEOSTREAM message to do this.
Is there any general tutorial that will cover all of the messages in AVICAP32.dll, and show me how to implement them in VB?
Thank you,
Robert