Jump to content

Wait function


Recommended Posts

Guest yatpeak
Posted

Is there such a thing as a wait function in VC++?

I know I could use a timer but I'm trying to make something happen over time in a fuction that can't be called by a timer. It would just make it much easier to use a wait.

Thanks,

Wyatt

Posted

How about Sleep(DWORD msec)

Be careful where you use it. You could hang the phone for the duration of the sleep if you put it in a window procedure or any function that is called from a window procedure.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.