Where's the Beep?No Beep in Vista
15 Replies - 1550 Views - Last Post: 19 December 2008 - 11:28 AM
#1
Where's the Beep?
Posted 18 December 2008 - 05:25 AM
I'm really tempted to go back to xp, so fed up with updating most of my code.
Any ideas?
Replies To: Where's the Beep?
#2
Re: Where's the Beep?
Posted 18 December 2008 - 06:14 AM
#3
#4
Re: Where's the Beep?
Posted 18 December 2008 - 07:00 AM
RobG, on 18 Dec, 2008 - 05:20 AM, said:
Thanks for the link, but it seems that this was just full of others searching for the same
answer and so many confusing the sytem tones with our good ol Beep(freq,duration) function.
I've got a sneaky suspicion that it's the incompatabilty of 32 bit functions and 64 bit drivers.
cheers
RobG
#5
Re: Where's the Beep?
Posted 18 December 2008 - 10:33 PM
#6
Re: Where's the Beep?
Posted 18 December 2008 - 10:39 PM
#7
Re: Where's the Beep?
Posted 18 December 2008 - 11:05 PM
//no2, don't follow me. I'm lost too.
#8
Re: Where's the Beep?
Posted 18 December 2008 - 11:07 PM
#9
Re: Where's the Beep?
Posted 18 December 2008 - 11:09 PM
also if you want to know for sure if it is dead or not just hit shift rapidly a few times that should make a beep>sticky keys
This post has been edited by yunusabd: 18 December 2008 - 11:10 PM
#10
Re: Where's the Beep?
Posted 18 December 2008 - 11:29 PM
#11
Re: Where's the Beep?
Posted 19 December 2008 - 03:17 AM
I don't know about Vista, but there is an ascii BEL value that most operating systems try to honor as best they can.
Try this, in whatever variation you like:
printf("%c",7);
#12
Re: Where's the Beep?
Posted 19 December 2008 - 09:47 AM
baavgai, on 19 Dec, 2008 - 02:17 AM, said:
I don't know about Vista, but there is an ascii BEL value that most operating systems try to honor as best they can.
Try this, in whatever variation you like:
printf("%c",7);
OK, one more time for those with learning difficulties...
the Beep function is not the system Beep, it is not the Windows Beep,
it is not controlled by nor is it in the bios. It is not any of the windows
warning tones. If you look for it in any of these places you will go
sadly astray. Beep is a Win32 sys function.
BOOL Beep(DWORD dwFreq, DWORD dwDuration);
It seems that so many of you know nothing of Win32 system services.
if you want to achieve any degree of knowledge in c++, then Win32
is an essential building block. As for Beep, its a vital function
used by every coder that I know, more as a debugging aid as anything
else. After all the Beep will tell you within 20ms or better exactly where
in the program you are.
#13
Re: Where's the Beep?
Posted 19 December 2008 - 10:36 AM
I did some digging (read: 30s of google) and found that the Beep function has been replaced with MessageBeep:
http://msdn.microsof...356(VS.85).aspx
And, by the by, not knowing the Win32 API does not mean that you are ignorant about C++. Most of the people who posted before you do not prefer to use windows. It makes sense that they would not be as familiar with windows programming as someone who prefers to program on windows.
finally, how is beep a useful debugging utility? When my computer beeps I get annoyed. printf/cout call can be far more helpful as they are persistent and can actually tell you something about what's happening in the code without the debugger having perfect pitch.
</rant>
#14
Re: Where's the Beep?
Posted 19 December 2008 - 10:42 AM
RobG, on 19 Dec, 2008 - 10:47 AM, said:
Nice.
For those with listening difficulties...
Quote
Generates simple tones on the speaker. The function is synchronous; it performs an alertable wait and does not return control to its caller until the sound finishes. -- http://msdn.microsof...277(VS.85).aspx
Here, speaker means speaker.
It's not a vital function, it's a noise maker. The speaker has been effectively obsolete for over a decade as most modern systems are smart enough to use actual sound cards.
Indeed, the error events that usually trigger a "beep" have been redirected to a notification event since at least Windows 98. In some Windows OS, when you chose "No Sound" would insist on giving you some feedback on error events and would default to the speaker.
There are also technical issues in using the internal speaking in an asynchronous environment. To the point that Windows NT had an early bug on multi CPU systems where it would crash out entirely if a speaker call managed to sneak through.
My answer to you is that you probably can't get to the speaker without compromising your OS. And that, sir, is last answer you'll have from me.
#15
Re: Where's the Beep?
Posted 19 December 2008 - 10:51 AM
RobG, on 19 Dec, 2008 - 08:47 AM, said:
It seems that so many of you know nothing of Win32 system services.
Don't bite the hand that feeds. Remember, YOU came to US for help.
Keep in mind, we don't all use Windows. Look under baavgai's avatar for example. He likes/uses Linux. I do too. We don't all use Windows. It's far too cumbersome.
This post has been edited by Locke37: 19 December 2008 - 10:55 AM

New Topic/Question
This topic is locked



MultiQuote








|