不知道,
你用VC的工具查一下这个0x401代表什么错误。好象是errorlookup吧,在VC附带的工具中

解决方案 »

  1.   

     偶按了一下f12没有这个发现这个错误代码。msdn中也没有看到。
      

  2.   

    它的含意是:MIXERR_INVALCONTROL -- The control reference is invalid.
      

  3.   

    补充:MIXERR_BASE 的值为 0x400VC 中定义MIXERR_INVALCONTROL = MIXERR_BASE + 1 = 0X401
      

  4.   

    错误MIXERR_INVALCONTROLmixerGetLineControlsReturns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following. #define MIXERR_BASE            1024//0x0400#define MIXERR_INVALLINE            (MIXERR_BASE + 0)
    #define MIXERR_INVALCONTROL         (MIXERR_BASE + 1)
    #define MIXERR_INVALVALUE           (MIXERR_BASE + 2)
    #define MIXERR_LASTERROR            (MIXERR_BASE + 2)Value Description 
    MIXERR_INVALCONTROL The control reference is invalid. 
    MIXERR_INVALLINE The audio line reference is invalid. 
    MMSYSERR_BADDEVICEID The hmxobj parameter specifies an invalid device identifier. 
    MMSYSERR_INVALFLAG One or more flags are invalid. 
    MMSYSERR_INVALHANDLE The hmxobj parameter specifies an invalid handle. 
    MMSYSERR_INVALPARAM One or more parameters are invalid. 
    MMSYSERR_NODRIVER No mixer device is available for the object specified by hmxobj. 
      

  5.   

    偶用的是peakmeter。呀。不会是没有这个设备吧
      

  6.   

    用MIXERCONTROL_CONTROLTYPE_VOLUM时可以,难道是没有peakmeter
      

  7.   

    说的很对
    我的声卡就没有peakmeter
    你可以从系统声卡选项看出来啊 
      

  8.   

      呵呵,楼上的。你不知道。他在98下有peakmeter.