Greetings!
I tried to play an mp3 using MCI function, play(). But Visual C++ 6.0 doesn’t recognize the function. Below is what I have written.
Code:
#define _WIN32_WINNT 0x0501
#define WINVER 0x0501
#include "stdafx.h"
DWORD Play(LPSTR lpstrAlias)
{
char achCommandBuff[128];
wsprintf(achCommandBuff, "play ", lpstrAlias);
return mciSendString(achCommandBuff, NULL, 0, NULL);
}
int main(int argc, char* argv[])
{
Play("C:\\Program Files\\Britannica\\2002\\multimedia\\mp3\\oharp00004u2.mp3");
return 0;
}
What are the means of fixing this problem?
Thanks.
-geek@02