error C2440: '=' : cannot convert from 'int' to 'MPEG_QUALITY'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)怎么解决这个错误?
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)怎么解决这个错误?
错误的转换语句是:pOpt->nQuality =(dwTmp >> 19) & 0x03;pOpt->nQuality 是MPEG_QUALITY枚举数据类型变量 。