Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pause(), delay(), sleep()?

0 views
Skip to first unread message

Bill H

unread,
Dec 30, 2008, 11:56:04 PM12/30/08
to
I wrote a few programs a few years back using various C packages but
haven't messed with it much since. I just looked back in some code I
managed to crank out early last year and noticed a place where I could
use a slight delay while I pop-up a little message box, but can't seem
to find the old sleep() function. I'm now using the Borland Free
Command Line Compiler, using the c++ compiler. I've acquired some used
books on C++, but the pause(), delay(), sleep() stuff ain't even in the
index. What is the new way to make this happen? Thanks.

red floyd

unread,
Dec 31, 2008, 1:41:22 AM12/31/08
to

They're not part of the C++ standard library. Look in the Borland
specific documentation.

jason.c...@gmail.com

unread,
Dec 31, 2008, 2:23:08 AM12/31/08
to

AFAIK Borland's compiler is only for Windows, this implies that your
platform is Windows. Therefore, the function you are looking for is
probably the Windows API function Sleep(). See documentation here:

http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx

HTH,
Jason

Bill H

unread,
Dec 31, 2008, 2:40:07 PM12/31/08
to

Thanks, Yes, I am programming in a command window under WinXP. The link
above seems like it might provide my answer. Thanks again.

0 new messages