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