오디오프로그래밍 질문입니다.
void CMP3PlayerDlg::OnBtnPlay()
{
// TODO: Add your control notification handler code here
// 파일 목록에 있는 여러 개의 파일중
// 몇번째 파일을 선택했는지에 대한 정보를 추출
CString strItem;
int nSel = m_ctrlPlayList.GetCurSel();
if(nSel >=0)
m_ctrlPlayList.GetText(nSel,strItem);
else
{
MessageBox("재생할 MP3 파일을 선곡해 주세요","MP3 재생",MB_OK);
return;
}
//"일시정지"버튼을 눌렀을 경우를 체크
if(m_bCheckPause !=TRUE)
{
if(m_pAudio)
{
m_pAudio->Stop();
m_pAudio->Close();
delete m_pAudio;
m_pAudio=NULL;
}
m_pAudio=new CAudio;
}
//제목 출력하기
m_strTitle= strItem;
UpdateData(FALSE);
m_pAudio->Open(strItem); //오디오 장치 열기
m_pAudio->Play(this); //재생하기
//WM_TIMER를 발생시키기 위한 함수
SetTimer(0,1000,NULL);
m_bCheckPause=FALSE;
}
여기 코딩한부분에서
error C2679: binary '!=' : no operator defined which takes a right-hand operand of type 'const int' (or there is no acceptable conversion)
error C2582: 'CButton' : 'operator =' function is unavailable
이런에러가 뜨는데요 어떻게 에러를 잡아야할지 모르겟어요 ㅜㅜ
도와주세용


댓글 달기