For example, you should assign the value of the Windows Media Player control currentMedia property to a variable declared as IWMPMedia3 to assure that you have access to the getAttributeCountByType and getItemInfoByType methods. In those cases, you must declare an object variable as the highest-numbered interface documented in this SDK to have access to all of the properties and methods of that object. Read the Interfaces topic in the Object Model Reference for C++ to identify which objects implement multiple interfaces. In the case of the cdromCollection property, for example, you assign its return value to a variable of type IWMPCdromCollection. You must assign such a reference to a variable that you declared as the corresponding interface. For example, the cdromCollection property returns a reference to a CdromCollection object. You use certain Player control properties to get references to particular objects. To set some properties you must use the Windows Media Player Properties dialog box, which you open using the "(Custom)" item in the Properties window. You can set many control properties using the Properties window. After closing the dialog box, you can place an instance of the Windows Media Player control on your form in the usual ways. At the bottom of the dialog box, confirm that the selected file is wmp.dll. In the Components dialog box, select the check box next to "Windows Media Player". To add the Windows Media Player control to the toolbox, first select Components from the Project menu. This section describes how to use the Windows Media Player 9 Series or later ActiveX control in applications created with Microsoft Visual Basic 6.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |