This is not a C++ problem at all. Suggest moderators move this thread to the Windows programming forum.

There is a function named Sleep() in the WIN32 API (the same API that has the Beep()...