Solved

Why does beep not work

Posted on 2006-06-18
3
173 Views
Last Modified: 2010-04-30
When I enter a beep command, nothing happens.  No sound at all.
All the other windows sounds work fine, but when I enter the beep command in my app, it makes no sound.

Can anybody tell me what I'm missing?

Cheers!
ahammar
0
Comment
Question by:ahammar
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 16930127
Hi,

From the Windows Control Panel, click the "Sounds and Audio Devices" applet, and then select the [Sounds] tab.

Within the "Program events:" list under the "Windows" category, select "Default Beep" & note the ".wav" file within the "Sounds:" drop-down list, for example, "Windows XP Ding.wav".

If you click the ">" play button, can you hear the sound?  If not, click the [Browse...] button & select any other ".wav" file.

Check that this ".wav" plays correctly, using the ">" button.  If it does, click [OK] to confirm.

If it does not, please come back to discuss further.

Otherwise, return to your code & execute a Beep command again & note any difference.

BFN,

fp.

0
 
LVL 23

Author Comment

by:ahammar
ID: 16930205
Ok, that was the problem.  It works now.  There was no default sound assigned.  I never unassigned it, so XP must be default without it.  Strange.  I guess I better use some type of play command or api or something in case another user has the same problem.

Anyway...Thank you!

Cheers!
ahammar
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16930240
You're very welcome.

You could, of course, determine if a sound file had been defined (by reading the system registry) &/or the actual file can be found in the specified location, and if either conditions are not met, then look for the first ".wav" file & assign it, or use a different approach as you suggested above.

Good luck.

BFN,

fp.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now