这段代码出错怎么解决
#include <mmsystem.h>#pragma comment(lib,"winmm.lib")
void CSoundDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
// TODO: Add your message handler code here and/or call default
DWORD pos;
int scrollpos;
int scrollpos;
if(pScrollBar->m_hWnd==m_left.m_hWnd)
{
scrollpos=m_left.GetPos();
::waveOutGetVolume(0,&pos);
pos=pos&0x0000ffff|(scrollpos<<8);
::waveOutSetVolume(0,pos);
}
if(pScrollBar->m_hWnd==m_right.m_hWnd)
{
scrollpos=m_right.GetPos();
::waveOutGetVolume(0,&pos);
pos=pos&0xffff0000|(scrollpos<<24);
::waveOutSetVolume(0,pos);
}
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
}
--------------------Configuration: Sound - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files (x86)\microsoft visual studio\vc98\include\mmsystem.h(114) : error C2146: syntax error : missing ';' before identifier 'MMVERSION'
c:\program files (x86)\microsoft visual studio\vc98\include\mmsystem.h(114) : fatal error C1004: unexpected end of file found
感谢