I'm not sure about anything :) i just want something which works ;)
>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.