WAVEFORMATEX对象为什么找不到
我包含了#include "mmsystem.h"也连接了winmm.lib 库
但是在生成WAVEFORMATEX对象并初始化对象时,却出现如下错误,是什么 原因呢?
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(36) : error C2065: 'waveformat' : undeclared identifier
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(36) : error C2228: left of '.wFormatTag' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(37) : error C2228: left of '.nChannels' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(38) : error C2228: left of '.nSamplesPerSec' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(38) : error C2065: 'SAMPLE_RATE' : undeclared identifier
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(39) : error C2228: left of '.nAvgBytesPerSec' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(40) : error C2228: left of '.nBlockAlign' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(41) : error C2228: left of '.wBitsPerSample' must have class/struct/union type
C:\Documents and Settings\whl\桌面\hhhhh\Sound.cpp(42) : error C2228: left of '.cbSize' must have class/struct/union type