Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP plays WMP
Message
De
28/12/2004 11:49:31
 
 
À
28/12/2004 09:53:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00972406
Message ID:
00972610
Vues:
29
I will keep this thread going for all who use VFP. Contributions welcome:

I altered some C++ code to VFP and got it to work. Here it is:

--------------------------------------------------------------
* Create the object
oWMP = CREATEOBJECT("WMPlayer.OCX")

* Retrieve the first media item from Media Library
firstMedia = oWMP.mediaCollection.getAll().item(0)

* Make the retrieved media item the current media item.
oWMP.currentMedia = firstMedia

* Display the name of the current media item.
?"Found first media item. Name = " + oWmp.currentMedia.name
--------------------------------------------------------------

By changing the item(0) to a different number item(5) or item(55) etcetera
you can navigate through the WMP playlist.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform