Hi!
Thanks for your code examples. I've got two newbie questions:
1) Is it possible to use WMPLib in a VMC background app? I get an error when trying to instansiate the WindowsMediaPlayer object.
2) When I use the same code in a windows forms application I get a bit further. I cannot, however, get any events to fire when using the following code:
private void Form1_Load(object sender, EventArgs e)
{
player.CurrentItemChange += new _WMPOCXEvents_CurrentItemChangeEventHandler(player_CurrentItemChange);
}
private void player_CurrentItemChange(object sender)
{
MessageBox.Show(player.currentMedia.name);
}
I'm guessing the problem is that I'm creating a local WindowsMediaPlayer object (so I'm not referencing the same WindowsMediaPlayer object that VMC is using?
Please help!