Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mediaplayer object
Message
De
09/08/2008 16:48:42
 
 
À
09/08/2008 16:32:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01337818
Message ID:
01337824
Vues:
13
Are you sure you don't want oPlay = CREATEOBJECT("WMPlayer.OCX")


>thanks..
>i am going to check
>>On my XP system, it's C:\WINDOWS\system32\wmpdxm.dll. (WM Player version 11)
>>>don't know which one...but the file i was trying to play was a .wav file anyway.
>>>by the way, which is the program called by the code ?
>>>i mean ..wmp.dll or anything else ?
>>>First i tried with a form in which i loaded a windows mediaplayer object , i mean an OLE object and it worked
>>>actually i was trying to skip all that big application I don't need but i had this problem
>>>>>Hi all,
>>>>>I came into a strange problem and I was cought by surprise !!!
>>>>>
>>>>>i launch an application whith these instructions
>>>>>
>>>>>
>>>>>
>>>>>oPlay = CreateObject("Mediaplayer.Mediaplayer")
>>>>>oPlay.filename = "file.mp3"
>>>>>oplay.volume   = lnVolume
>>>>>oPlay.play()
>>>>>
>>>>>
>>>>>
>>>>>well i get the error 1426 : OLE error code 0x800a0005: Unknown COM status code at the last line of code.
>>>>>It is surprising but it works perfectly under Vista!!!! while i get the error under WinXP
>>>>>
>>>>>How come ?
>>>>>
>>>>>Thank you all again
>>>>>Alessio
>>>>
>>>>What version of Media Player on XP? Earlier versions didn't support MP3 by default, you had to add the CODEC.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform