Solved

Creating a beep Using Visual C++ 4.0.

Posted on 1997-12-15
3
1,012 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

746 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

11 Experts available now in Live!

Get 1:1 Help Now