Borland C ++ Builder FAQ
The content The last update: 12/12/2008

How to publish a sound the system speaker?

The author: OlegGG
The initial link: - - -

To use WinAPI-function Beep. It has two parameters (however, function can be caused and without them):
The first - frequency in hertz,
The second - duration in milliseconds.

Though in MSDN it is written that these parameters are ignored in 9х, they work For me excellent.

It is used so:
Beep (1000,1000); 
By the way, the code continues to be fulfilled only when peep ends...