windows mobile 5.0 smartphone

Dear All,
I installed visual studio 2005 beta 2 team suit on my XP machine.I am looking for samples to run a media file(.wmv).I am using wmp.dll and wmp.ocx.

I opened the smartphone magneto and i am trying to drag & drop wmp.ocx but it is always disabled.

I am also trying to use provided API for wmp.dll,

WindowsMediaPlayerClass Player=new WindowsMediaPlayerClass();
Player.URL="C:/MyDocuments/Media.wmv";
Player.Play();
When i execute the above code, It is not giving any error but i could not see my media file Playing.


experts , please help me out of this situation.

Thank You.

[649 byte] By [Amarender] at [2008-2-19]
# 1
Firstly, the device designer doesn't support drag drop activex control.
Second the wmp.dll is a library for desktop computer, it is not designed to run in Windows Mobile devices. If you want to programmitically play the wmv file, you would need to do P/Invoke or you can just play the wmv file by executing

System.Diagnostics.Process.Start("Windows\Media.wmv", "")

In the future, for questions specific to Smartphone development, you might want to try the following newsgroup
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.smartphone.developer

Thanks,

David

DavidTSoMSFT at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
Hai David,

Thanx for the reply.

I executed System.Diagnostics.Process.Start("media.wmv","") but it is raising some

win32exeception in System.dll

would u let me know clearly the usage of

System.Diagnostics.Process.Start("","")

please help me.

Amarender at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...