Solved

Creating a beep Using Visual C++ 4.0.

Posted on 1997-12-15
3
1,014 Views
Last Modified: 2008-02-01
How can I create a beep from the PC speaker using Visual C++ 4.0? Is there a "sound(Freq.)" and "nosound(Freq.)" that I can use?
0
Comment
Question by:dawn123
3 Comments
 
LVL 3

Accepted Solution

by:
os012897 earned 50 total points
ID: 1176316
Hi,

There is the "Beep (freq, duration)" function that u can use

greetings,
        os


0
 
LVL 22

Expert Comment

by:nietod
ID: 1176317
Why two questions?  I don't see the difference?  On think that might be significant is that the beep() function will not return until the sound finishes.  That is not a problem for a warning beep, but is a problem if you want to play music.
0
 

Author Comment

by:dawn123
ID: 1176318
What is the header file that I have to include in order to use the function Beep()? I am using Visual C++4.0.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

920 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

16 Experts available now in Live!

Get 1:1 Help Now