I have an old application written in C++ 6.0. This application manages some sound for alarming purpose in a manufacturing environment.
Now I would like to make some modifications and use Windows Media Player. My knowledge of C++ limited. Kind of lost in the pointers...
This is what I managed to do so far:
Used the class wizard to add the wrapper classes to wmplib.dll and included "wmp.h". in the .cpp file.
IWMPPlayer *player = new IWMPPlayer();
//player.SetUrl("http://streampoint.radioio.com/streams/57/45ec8c85a2a8a/listen.pls");
player->SetEnabled(true);
player->SetUrl("C:\\tada.wav");
IWMPControls *pControls = new IWMPControls();
*pControls = player->GetControls();
pControls->play();
Any suggestions?
Thanks