| 发表于:2007-11-13 21:26:414楼 得分:0 |
不支持messagebeep()或beep()函数,只有用playsound()来实现 [dllimport("coredll.dll")] public static extern bool playsound(string pszsound, int hmod, int fdwsound); public const int snd_filename = 0x00020000; public const int snd_async = 0x0001; playsound("\\flash disk\\b.wav", 0, snd_filename ¦ snd_async);//调用函数,注意路径 | | |
|