Click to See Complete Forum and Search --> : delay function for vc 6.0 compiler


jesht
April 1st, 2003, 05:07 AM
hello,

is there any delay function available in vc 6.0 environment.

do we have any equivalent of the "delay" function that we use in tourbo c++ (defined in dos.h)

if, there is no function available..how can we wrtie our own?

---jesh

PaulWendt
April 1st, 2003, 05:41 AM
I don't know what delay() does, but I'm assuming it suspends
the program for a given amount of time. You can use the function
Sleep() for WIN32 or sleep() for unix. Just #include windows.h
and you should see Sleep(). Here's a link to Sleep():
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/sleep.asp

--Paul