INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Events not firing with MFC (VS8) app and MC 11.1.201  (Read 2157 times)

SteveV

  • Regular Member
  • Recent member
  • *
  • Posts: 37
  • software geek
Events not firing with MFC (VS8) app and MC 11.1.201
« 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
Logged

SteveV

  • Regular Member
  • Recent member
  • *
  • Posts: 37
  • software geek
Re: Events not firing with MFC (VS8) app and MC 11.1.201
« Reply #1 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
Logged

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: Events not firing with MFC (VS8) app and MC 11.1.201
« Reply #2 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

Your memory is the second thing to go.  I forget what the first thing is.
Logged

SteveV

  • Regular Member
  • Recent member
  • *
  • Posts: 37
  • software geek
Re: Events not firing with MFC (VS8) app and MC 11.1.201
« Reply #3 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
Logged

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: Events not firing with MFC (VS8) app and MC 11.1.201
« Reply #4 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.
Logged
Pages: [1]   Go Up