CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2002
    Location
    Mauritius
    Posts
    23

    Wink delay function for vc 6.0 compiler

    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

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    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/de...base/sleep.asp

    --Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured