我想让程序发出 滴滴滴滴  的报警声音, 不知咋搞!麻烦各路大侠详细说明一下!!谢谢!!^_^

解决方案 »

  1.   

    或者可以自己播放一个WAV声音
    sndPlaySound
      

  2.   

    MessageBeep
    The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry. BOOL MessageBeep(
      UINT uType   // sound type
    );
    Parameters
    uType 
    [in] Specifies the sound type, as identified by an entry in the registry. This parameter can be one of the following values. Value Sound 
    -1 Standard beep using the computer speaker 
    MB_ICONASTERISK SystemAsterisk 
    MB_ICONEXCLAMATION SystemExclamation 
    MB_ICONHAND SystemHand 
    MB_ICONQUESTION SystemQuestion 
    MB_OK SystemDefault 
      

  3.   

    可以自己录个报警铃声如".wav"格式。然后调用PlaySound即可。