Can i know what's wrong with the below source code? can i put the variable x, y like this? How it can't work?
#include <Windows.h>
#include <mmsystem.h>
#pragma comment (lib,"winmm.lib")
int ,x,y;
void CTestingDlg::OnPlay()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString strFreq;
CString strHL;
strFreq = m_strFreq;
strHL = m_strHL;
strFreq.MakeUpper();
strHL.MakeUpper();
if(strFreq=="x" && strHL=="y")
PlaySound("x_y_2.wav",NULL,SND_FILENAME);
}