Simple question about pausing for a few seconds

Started by
1 comment, last by kuphryn 17 years, 8 months ago
I want to pause my process for a few seconds but I'm not too sure of the syntax for doing this. I have looked in the help files and on MSDN but if I type pause in then a mountain of links come back. Can anyone help? I am using VC++ 2003 .Net on XP Pro.
Gary.Goodbye, and thanks for all the fish.
Advertisement
If you want to pause, and not do anything at all (Not even update the window), then use Sleep(delay) where delay is in milliseconds.

If you want to have the window updated too, then it's a bit more complicated since you probably don't want to respond to some window messages (like WM_COMMAND).
another possible solution is WaitForSingleObject()

Kuphryn

This topic is closed to new replies.

Advertisement