i m making a toolbar with radio feature in C#,and i m supposed to use above
mention interface/class but i have problem in both, i m
using this code for interface, but dont know how to initialize that it gives
object reference is not instance of object.
WMPLib.IWMPPlayer4 player1=null; //what to assign there ?
player1.enableContextMenu = false;
player1.URL= "url.asx";
player1.controls.play(); if error from first line is removed then it
will work.
///second code.
MediaPlayer.MediaPlayerClass clas = new MediaPlayerClass();
clas.BaseURL= "url.asx";
clas.Play(); //exception in this line CTL_E_ILLEGALFUNCTION CALL ? how to
remove that there is not function to remove that.
plz i know activx controll is there but the problem is that i m using that
in toolbar i m unable to port activex controll on toolbar.