switch (LOWORD (wParam))
{
case IDC_PLAY:
static char textmessage[256];
SendMessage((HWND)lParam,WM_GETTEXT,(WPARAM)256,(LPARAM)textmessage);
if( strncmp(textmessage, "Play", 4)==0)
{
PlaySoundW(L"C:\Users\Chaiein\Downloads\oscilloscope_src\sound1.wav",NULL, SND_FILENAME);
SetWindowText((HWND)lParam,"Stop");
}
.....
}
I am not getting the music that in sound1.wav even if I give full path how to make it work?