Hello. I use Visual C ++ 2010. I encountered such a problem - I cannot create a delay to call a function (I need to call it, say, once a minute).
I have a button, I click on it, the cycle starts:
while(true) { ScreenShot (HWND); }
I have to perform this function, of course, not every second, but, for example, once a minute. Sleep (); Before the function causes the program to hang (well, there is a lot of information about this in Google) Please tell me how you can cause a delay in execution. With SetTimer something I did not understand.
ScreenShot
call with a delay between calls - Donil