INTERACT FORUM

Windows => Plug-in Development => Topic started by: SteveV on April 15, 2007, 10:08:15 pm

Title: Events not firing with MFC (VS8) app and MC 11.1.201
Post by: SteveV on April 15, 2007, 10:08:15 pm
Refering to the automation wiki (http://wiki.jrmediacenter.com/index.php/Media_Center_Automation) I put together a VS8 simple MFC dialog app.  The app builds properly and GetActiveObject and AfxConnectionAdvise both succeed but I'm not seeing any events on my MJAutomationSink event handler.

Most of the posts refer to the MC 12 tlb--can anyone confirm that they've been able to get MC 11.1 to fire events?

Thanks,

Steve
Title: Re: Events not firing with MFC (VS8) app and MC 11.1.201
Post by: SteveV on April 15, 2007, 10:18:02 pm
Nevermind, got it working.  I had the MJEvent method declared as protected instead of public in the header file.

Steve
Title: Re: Events not firing with MFC (VS8) app and MC 11.1.201
Post by: scthom on April 16, 2007, 08:58:41 am
Also, MC 11.1 does not do events, only 12.

http://wiki.jrmediacenter.com/index.php/Media_Center_Automation (http://wiki.jrmediacenter.com/index.php/Media_Center_Automation)

Your memory is the second thing to go.  I forget what the first thing is.
Title: Re: Events not firing with MFC (VS8) app and MC 11.1.201
Post by: SteveV on April 17, 2007, 07:27:00 am
As it turns out, 11.1 doesn't seem to fire all of the available events.  The most important one from me perspective: MCC: NOTIFY_TRACK_CHANGE never fires.  Moving to MC 12 fixes the problem.

Steve
Title: Re: Events not firing with MFC (VS8) app and MC 11.1.201
Post by: scthom on April 17, 2007, 09:26:43 am
Yeah, no question 11.1 only has a few events.  The Wiki doesn't identify which ones were in and which ones are in 12 only.