Page 1 of 1

C# activex,how to retrieve log messages in txtbox

Posted: 15 Jul 2011 07:23
by prince2485
hello frnds,
i m wrking on project based on vlc player in c#.
i m using version 0.9.2 grishenko
firstly i want to capture/display all log message in runtime while video is playing ,
i searched lots in goggle, i doesnt get much except dis code :

if (axVLCPlugin21.log.messages.count > 0)
{

AXVLC.IVLCMessageIterator iter = axVLCPlugin21.log.messages.iterator();
while (iter.hasNext)
{
AXVLC.IVLCMessage msg = iter.next();
vlclog.AppendText(msg.severity + " - " + msg.type + " - " + msg.name + " - " + msg.message + "\n");

}
axVLCPlugin21.log.messages.clear();
}
link: viewtopic.php?f=16&t=32414
but i m getting a error
"Cannot implicitly convert type 'AXVLC.IVLCMessage' to 'AXVLC.IVLCMessages'. An explicit conversion exists (are you missing a cast?)"
tx in advance .W8ing 4 pos. reply...