我是用的c #,mc 1000支持到wince 4.2,为什么就不能发出声音呢?
Miscorsoft Visual Basic Runtime 不响
public const int MB_ICONEXCLAMATION = 48;
[DllImport("user32.dll")]
public static extern bool MessageBeep(uint uType);
MessageBeep( MB_ICONEXCLAMATION );
不响
[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);
Beep(800,300);
不响
[DllImport("winmm.dll")]
public static extern bool PlaySound(string pszSound,int hmod,int fdwSound);
public const int SND_FILENAME = 0x00020000;
public const int SND_ASYNC = 0x0001;