Gast
#1039708
MessageBeep(0); does not work under service program on Vista Unter RegEdit USER\Control Panel\Sound\Beep set to "yes". habe ich schon nachgeschaut. Auch der simple Beep() für Visual Basic Express geht nicht. Im Internet habe ich was dazu gefunden. I've had the problem on two machines: one Windows XP Pro and one Windows 2000 Pro. I've already found out that on Windows XP machine I've had somehow USER\Control Panel\Sound\Beep set to "no". I don't know how this has happened (it's my machine and I haven't even knew about this setting so far). I've changed it to "yes" by hand, rebooted and it works now. On Windows 2000 machine on the other hand this setting is set to "yes" already. It doesn't work anyway, so there must be something else. I've changed our program that had the problem (it is hardware+software, it has to beep to let user know that something had happened and he has to look at PC monitor) to use Beep instead of MessageBeep(-1) and it works now. I still don't know what has changed registry setting on my machine and why doesn't it work on the other one, but that's not important for me anymore. I have similar things happening to me from time to time. Installation programs do weird things. A while back I got no sound out when I tried to play CDs. There was some Registry setting that was stopping it, but I have no idea what caused the Registry change.