|
Pause a program
"I need to call a function every 1 second in my Windows (GUI) program. I have tried the following:
Code:
#include <windows.h>
...
while (true) {
Sleep(1000);
}This works, except it locks up the application between calls so nothing else can occur.
Does C++ (or the Windows API) have a built-in pause or timer function for this purpose? Thanks."
|