Unhandled exception when using MediaPlayer as COMObject.

  • Thread starter Thread starter danielschmitz.com
  • Start date Start date
D

danielschmitz.com

Hello.
I tryed to use the WindowsMediaPlayer (wmp.dll) as a COM Objekt in my
application. It works so far, but if I try to access some properties of
the class (in my case an intance of WindowsMediaPlayer() ) I get an
ecxeption: "An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
MyApplicationName.exe"

Sadly I'm relatively new to C#/.NET and I have no more ideas to do
different.

Greetings,
Daniel

PS: I can't use the SDF from OpenNetCF... :-(
 
Hello.

First I've referenced the wmp.dll in VisualStudio.
Then I make a new Instance of
private WMPLib.WindowsMediaPlayer player = new
WMPLib.WindowsMediaPlayer();

I can play a file with player.URL = "PATH"; or if the URL is set with
player.controls.Play();

But if i try to do do this:
player.controls.fastForward(); I get the exception...

Any idea about that?

Thanks, Daniel.
PS: Sorry, for the late posting, I'm in busy at the moment.
 
Back
Top