Using PC Speaker and NOT the sound card in a console...
Is there a way to make windows think there is no sound card, so that I can make sure using the Beep(Hz,Length) function (MVC++ 6.0 on Windows XP) sends it to the PC Speaker instead of the sound card? the help file says that if a sound card is present that it sends the code to the sound card, so if someone has a sound card I cannot play tones with beep.
I know it's an old thread, but it's still only half way down the page
Quote:
how come i can use this?
#include <iostream>
using namespace std;
int main()
{
cout<<"\a,\a,\a,\a";
return 0;
}
and it works in win 2000 and xp?
What compiler did you do that with?