Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP plays WMP
Message
From
28/12/2004 11:49:31
 
 
To
28/12/2004 09:53:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00972406
Message ID:
00972610
Views:
35
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform