I'd first check for an error coming back from Beep().
In any case, yes, on 9x it goes to the sound card, and I suspect their default Window's beep is either disabled orthe volume turned down.
Alas, MessageBeep() tries the sound card first.
Here's some sample code to talk directly to the speaker port:
http://www.news2news.com/v
There's a good chance that NT/2K/XP will throw an exception on that code, so either make sure you trap it or check for OS before using it.
Main Topics
Browse All Topics





by: warturtlePosted on 2004-07-27 at 12:24:28ID: 11650063
Hi Maxime,
om/article /0,1410,16 838,00.htm l
Have a look at this:
http://community.borland.c
This is an example using Windows API which are similar between all versions of windows :-)
Hope that helps,
Warturtle