Menu

sleep -function

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

    Hi together,
    before closing my program, it has to wait 2 seconds. Can I and how can I use a delay- oder sleep-function?
    Thanks for your help
    Richie

     
    • Nobody/Anonymous

      I got this from another forum, haven't used it myself, but you can try: the header file is windows.h, the function is Sleep(milliseconds) (with a capital 'S').
      Hope this works and I've actually helped.

       
    • Nobody/Anonymous

      Thanks, it works!
      Richie

       

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.