I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop.
I use MFC and DirectShow
The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can use sleep or WaitForSingleObject but I still want to have the ability to click on the dialog's buttons (STOP for example...)
Is there any way to accomplish that without multithreading?
Hope this is understood. many thanks for your help!