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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Thanks, it works!
Richie