i have an application where i need to use the windows media player 11 as activeX control, and to access it programatically. I would like to start/pause/stop it over own buttons for instance.
I created the QAxWidget object using the setControl() method and the WMP 11 CLS_ID. Then I used QueryInterface() to get a pointer to the IWMPControls interface. The returned pointer is not null, but any call to an interface method (for instance i try to call the method isAvailable("play") from IWMPControls) leads to a crash. I generated the cpp and h files for the WMP interface using the dumpcpp tool.
Can anyone help please ?
Thanks in advance.