Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing CDs With VFP Forms
Message
De
08/01/2004 23:38:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/01/2004 20:04:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00865292
Message ID:
00865331
Vues:
14
>I am seeking a class, form, source code, or a resource that will allow me to play CDs and MP3 files in my applications\program. I am using Visual Fox Pro 8.0. Your help would be greatly appreicated.

Tools/Options/controls, make sure Windows Media Player ActiveX is checked.
Drop it on a form.

I'd recommend an earlier version, "MediaPlayer.MediaPlayer.1" is what it says on my MRZ.scx (Russian and Bulgarian colleagues will probably understand the relation between "MRZ" and "MP3"). The code to play a file is quite simple:
	Thisform.Olecontrol1.FileName=lcFile
	Thisform.Olecontrol1.Play
For details, get ready to be lost in the maze (quagmire?) Microsoft's MSDN and whatever. It's a mess and it took me hours to find help for this version, four years ago.

For the life of me, I don't remember which version is it that I was using - it's the last one which didn't call home every now and then, take five minutes to refresh a playlist, ... I still have two pages of small script that I wrote, full of complaints about WMPlayer version n+1 (and the corresponding OCX). The sole reason I wrote a MP3 player form in Fox was that I had to uninstall the (freebie!) Winamp, because the company where I worked wanted to be kosher with copyright -- which meant we couldn't have anything installed unless it was Microsoft. Did I say the company was an old VFP+Delphi shop which went VB+ASP+SQL? Well, it was. Didn't last.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform