Hello,
I'm trying to adjust the volume of my WindowsMediaPlayer ActiveX control.
Unfortunately, I couldn't find the appropriate methods in QAxWidget::generateDocumentation() but I know they exist. It's actually IWMPSettings::setVolume() where I can adjust the volume.
Now I used Qt's dumpcpp tool to generate the namespace interface thingies but I have no clue how to use it. The generated .h file has the proper method:

Qt Code:
  1. class WMPLIB_EXPORT IWMPSettings : public QAxObject
  2. {
  3. public:
  4. IWMPSettings(IDispatch *subobject = 0, QAxObject *parent = 0)
  5. : QAxObject((IUnknown*)subobject, parent)
  6. {
  7. internalRelease();
  8. }
  9.  
  10. //[...]
  11.  
  12. /*
  13.   Property volume
  14.  
  15.   Returns current audio volume
  16.  
  17.   */
  18. inline int volume() const; //Returns the value of volume
  19. inline void setVolume(int value); //Sets the value of the volume property
  20.  
  21. //[...]
  22. };
To copy to clipboard, switch view to plain text mode 

And here's how I tried it (inside my subclassed QAxWidget):

Qt Code:
  1. WMPLib::IWMPSettings *s = 0;
  2. this->queryInterface("{9104D1AB-80C9-4fed-ABF0-2E6417A6DF14}", (void **)&s);
  3. s->setVolume(75);
To copy to clipboard, switch view to plain text mode 

(I found the Uuid in the WMP-SDK and also on google) But all I get are runtime errors in s->setVolume() (well of course).

So am I understanding something wrong or is it really that hard to get it?

Thank you!