莫非要把Beep放到线程里面去执行? MSDN 关于Beep: Beep The Beep function generates simple tones on the speaker. The function is synchronous; it does not return control to its caller until the sound finishes. BOOL Beep( DWORD dwFreq, // sound frequency DWORD dwDuration // sound duration ); 可见,你要实现你的目的,只能是把Beep放到工作线程里面执行了。
MSDN 关于Beep:
Beep
The Beep function generates simple tones on the speaker. The function is synchronous; it does not return control to its caller until the sound finishes. BOOL Beep(
DWORD dwFreq, // sound frequency
DWORD dwDuration // sound duration
);
可见,你要实现你的目的,只能是把Beep放到工作线程里面执行了。