i have these code for test if the music is playing:
these code isn't correct. can anyone advice me?Code:public: bool IsPlaying() { char mcidata[129]; // Data is returned by some MCI requests int mcidatalen=sizeof(mcidata)-1; mciSendString("status mode",mcidata,mcidatalen,NULL); if (!stricmp(mcidata,"playing") == 0) return TRUE; else return FALSE; }