In the DOS program I am converting to WIN32 I have a little routine that makes a beep sound when a user presses a wrong key, I like this because it draws the users attention back to the monitor so they can see that the keypress has been ignored. There are a number of easy ways to do this in DOS, one being just output the bell character to the display. What I wan't to know is an easy way to do this in WIN32.
Posted on 2001-08-04 05:49:50 by Mel
It's not too hard to do. Look up the MessageBeep function in your
api reference.

And be sure to make the beeping feature something the user can
turn off. There's a lot of people who can do blind typing (me :)), so
don't punish these users if you don't have to :D.
Posted on 2001-08-04 05:53:38 by f0dder
Thanks fOdder, I only use it in one small (important) part of the program. I agree it would get annoying it it happened all the time,
Posted on 2001-08-04 06:36:58 by Mel
MessageBeep works just fine:alright:
The function, if anyone is interested is:-

invoke MessageBeep,-1 ;-1 is the default system beep
Posted on 2001-08-04 08:51:46 by Mel