关于beep音的问题 我用C#写了个windows应用程序,在某个事件发生的时候,声卡发声,同时主板也要发出beep音。但是在这两个声音同时响起后,应用程序就似乎死机了,没有反应,请教各位这是什么原因? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 beepSoundTimer_Tick是个timer控件,某个事件发生时,此timer控件的Enabled为true则播放Beep音。同时,PlaySound方法播放硬盘上的一个.wav文件。但是此时应用程序却死机了。[DllImport("winmm.dll", SetLastError=true)]public static extern bool PlaySound(string pszSound, IntPtr hmod, SoundFlags dwFlag);[DllImport("Kernel32.dll")]public static extern Boolean Beep(UInt32 frequency, UInt32 duration);private void beepSoundTimer_Tick(object sender, System.EventArgs e){ PInvoker.Beep(700,100); PInvoker.Beep(1700,100); PInvoker.Beep(700,100); PInvoker.Beep(1700,100); PInvoker.Beep(700,100); PInvoker.Beep(1700,100); PInvoker.Beep(700,100); PInvoker.Beep(1700,100); System.Threading.Thread.Sleep( 1000 );} 急求IIS配置问题! 控制台编程时如何实现 getch 功能? !!!请教大侠!动态创建类 如何判断一个字符串是否是纯数字组成 请教各位高手!! C# acess 如何联合查询 请教一下。。。急!~~~ datagridview 移动行的问题 真的是没有高手来,还是我的问题太弱太偏太难?有关索引器和Item的冲突问题? 如何将DataGrid中的修改的数据,放到数据库中呢? .net2.0 如何打开其他机器上的解决方案文件? 求一段SQL语句,紧急~~~~~~~~~~~~~~~~~~~~~
public static extern bool PlaySound(string pszSound, IntPtr hmod, SoundFlags dwFlag);[DllImport("Kernel32.dll")]
public static extern Boolean Beep(UInt32 frequency, UInt32 duration);private void beepSoundTimer_Tick(object sender, System.EventArgs e)
{
PInvoker.Beep(700,100);
PInvoker.Beep(1700,100);
PInvoker.Beep(700,100);
PInvoker.Beep(1700,100);
PInvoker.Beep(700,100);
PInvoker.Beep(1700,100);
PInvoker.Beep(700,100);
PInvoker.Beep(1700,100);
System.Threading.Thread.Sleep( 1000 );
}