How to play .wmv/.wma file on a smartphone 5.0 Emulator using .net 2005
Dear All,
i am executing
System.diagnostics.Process.Start("xxx.wmv","") statement to run .wmv file on my smartphone emulator in visual studio.net 2005.
I am getting Exception,
"UnHandled System.ComponentModel.Win32Exception in System.dll".
Help me please, how to handle the above exception.
Amarender.
Normally a Win32Exception will contain an error code which indicates the error. Are you ensuring you pass the full path (including folders) of the .wmv file?
Try something like this:-
Try
Process.Start("\My Documents\MyFile.wmv")
Catch ex As Win32Exception
MessageBox.Show(ex.NativeErrorCode.ToString("X"))
End Try
Peter
Yes,
I have passed the full path.I think Emulator is unable to recognize the path.
Do I need to do anything more to make Emulator to recognize th edesktop path.
It is giving some alert message,
"Can not play the file or the file format is not supported"
Help me,
Thanx