Home > Software engineering >  About the use of the Windows media player controls
About the use of the Windows media player controls

Time:11-03

How to make the control associated a CWMPPlayer4 variables, relevance, can only be associated with a COcx1 variable, how to return a responsibility

CodePudding user response:

What the introduced control control class name? COcx1?

CodePudding user response:

Want to finish what went wrong say that understand what function

CodePudding user response:

Is the fact that the item with Windows media player ActiveX control a music player, adding the control, correlation of a variable is for him, can only be associated COcx1 types of variables, and cannot be associated CWMPPlayer4 variables of type, CWMPPlayer4 is provided in the control interface

CodePudding user response:

reference 1st floor zgl7903 response:
introduce control what the control class name? COcx1?

yes

CodePudding user response:

The Ocx1. H and Ocx1. CPP completely removed from the project, to introduce the class name is CWMPPlayer4

CodePudding user response:

Who made the music player, help to solve it

CodePudding user response:

This has solved, manual associated variables, however, new problems have appeared

CWMPMedia3 m_media=static_cast & lt; CWMPMedia3 & gt; (m_player newMedia (path));
Error: unable to transfer from "LPDISPATCH" to "CWMPMedia3"
  • Related