>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.