Hi.
I have a problem. How do I call system beep or some other such alert from c++ I know that we can use the escape sequence \a to do so. But how to use it. Any suggestion?
Printable View
Hi.
I have a problem. How do I call system beep or some other such alert from c++ I know that we can use the escape sequence \a to do so. But how to use it. Any suggestion?
MessageBeep(UINT) is part of the standard Win32 API. Its parameter is a messagebox icon code like MB_ICONSTOP, MB_ICONINFORMATION etc.
Beep is a flexible SDK function:
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);