void beep(void) { MessageBeep(MB_OK);
void beep(int errorbeep) { static long last_beep = 0; long now, beep_diff;  now = GetTickCount(); beep_diff = now-last_beep;   if (beep_diff>=0 && beep_diff<50) return;  if(errorbeep) MessageBeep(MB_ICONHAND); else MessageBeep(MB_OK);  last_beep = GetTickCount();
void beep(void) {    MessageBeep(MB_OK);}