beep without pausing

I was using beep(freq,len) that is inside <windows.h> to beep from internal speaker.
But this pauses the program.
How to make it so it beeps with also running the program?

Thanks.
You might want to look in to threading:
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Threading
\a it will beep.

example:
 
cout << "\aJackpot" << endl; //makes 1 beep sound. 
Last edited on
But he want's a constant beep while other code is running.
wouldnt make sense to have an annoying beep while code is running, but the \a will beep as many times as you wish so long as you program it to do so.
Topic archived. No new replies allowed.