Menu

delay(), sleep() functions

2002-11-06
2012-09-26
  • Nobody/Anonymous

    Which are the equivalent functions to delay() or sleep() in Dev-C++. Where are them (.h)?
    Thank

     
    • Nobody/Anonymous

      Grepping through the c:\dev-cpp\include directory, I found delay here:

      grep -i "delay(" *
      winbgim.cpp:void delay(unsigned msec)

      and sleep here:
      grep -i "sleep(" *
      winbase.h:void WINAPI Sleep(DWORD);

      You could do the same thing with the Windows search function, I just like grep, grep is our friend!
      :-)

      Wayne

       
      • Nobody/Anonymous

        winbgim? In what mingw distribution is it? At least I couldn't find it in any one I have.
        There is also
        void _sleep (unsigned long);
        in stdlib.h, though it's not recommended.

        tkorrovi

         
    • Nobody/Anonymous

      By the way, the compiler, the guts of Dev-C++, is the gcc compiler, so if you were to search for the functions with something like google, remember to look under gcc.

      Wayne

       
    • Nobody/Anonymous

      As I said, I found it in my directory:

      c:\dev-cpp\include

      It came with Dev-C++, it is nothing I added, I am using the MingW that came with Dev, I have not been manly enough to take Jack up on his directions for upgrading to the newer MingW.

      Wayne

      p.s. I am running version 4.9.6.6 of Dev

       
    • Nobody/Anonymous

      > I am running version 4.9.6.6 of Dev

      OK, thanks, I have older version.

      tkorrovi

       
    • Nobody/Anonymous

      > OK, thanks, I have older version.

      The upgrade!

      ;-)

      Have a great day tkorrovi!

      Wayne

       
    • Nobody/Anonymous

      winbgim.h comes with the CDGI Devpack (BGI interface)

      Curtis

       
    • Nobody/Anonymous

      OK, so I guess I lied, but was not smart enough to know it....thank Curtis!

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.