Главная страница | назад





Article #17421: How can I beep the PC Speaker?

 Question and Answer Database
FAQ2421C.txt How can I beep the PC Speaker?
Category :Windows API
Platform :All
Product :C++Builder 3.x
Question:
How can I beep the PC Speaker?
Answer:
Call the Windows API function MessageBeep.
Example:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
MessageBeep(-1);
}
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99