INTERACT FORUM

Please login or register.

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

Author Topic: MFC packs its bags and leaves  (Read 9692 times)

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
MFC packs its bags and leaves
« on: November 26, 2012, 05:12:30 pm »

Tonight's build of Media Center 18 removes the remaining vestiges of MFC (Microsoft Foundation Classes) from the main program.

MFC is the C++ toolset provided by Microsoft to make building applications easier.  It helps with things like building user interface, handling drag-n-drop, catching events, and using system controls like edits and buttons.  It also includes the basic data types that make up a program like strings, maps, arrays, rectangles, and dates.  You can see a picture of the full MFC object tree here.

We've been moving away from MFC for several years (more here).  Tonight's build removes it completely.

To do this, we've had to remove a few features that still used MFC.  These include:
  • Mini skinning ('Slim' remains)
  • Line-in recording
  • Menalto and HTML gallery upload (Pix01, Facebook, and Flickr remain)
  • FTP upload
  • Repeated crash startup dialog
  • A couple less used burning dialogs (waiting for a disk prompt, renaming files that are too long)
  • Audible DRM activation
  • Favorites manager (View > Navigation menu / Navigation toolbar button)
  • Skin effects color selection

    [The list above was eEdited by JimH on December 3, 2012.]

    There are a couple things that could use some extra testing:
  • Drag-n-drop (both inside the program and in and out of the program)
  • COM automation SDK


We're going to work through these missing features and any problems caused by the switch in the coming couple weeks.

I expect this to be the last major internal code change for v18.  There will be some additional internal changes to accommodate porting, but they'll be more focused by comparison.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MFC packs its bags and leaves
« Reply #1 on: November 26, 2012, 05:19:32 pm »

The main benefit of this switch is for cleanliness and cross-platform.

But there are a couple things a user might care about:
  • Program is about 5% smaller
  • There's one less layer of message loop pretranslation (a Windows program is basically a big list of messages getting processed in a loop)
  • More consistent look and operation to dialogs
Logged
Matt Ashland, JRiver Media Center

SamuriHL

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 969
Re: MFC packs its bags and leaves
« Reply #2 on: November 26, 2012, 05:33:44 pm »

What happens when MC18 crashes now that the crash dialog is removed?  I got into a crash loop last weekend and found that dialog to be partially useful. Does that functionality go away?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: MFC packs its bags and leaves
« Reply #3 on: November 26, 2012, 05:33:48 pm »

  • COM automation SDK
You would go and mess with this when I'm a day or two away from releasing the first public version of my new AutoQueue application.  Sigh... Well, I guess better now than then.  ;) ;D

PS.  I stopped updating the other thread because no one seemed interested, but it is almost done.  I basically just need to add command line functionality (allowing it to run fully automated) and then I'll release a beta.

Internally, there's still a bunch more to clean up.  It has only VERY rudimentary error checking and validation right now, for example.  But the framework I built should be able to handle that without too much trouble.  I'm going to target that after I get a beta out there...
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71341
  • Where did I put my teeth?
Re: MFC packs its bags and leaves
« Reply #4 on: November 26, 2012, 06:02:21 pm »

... I stopped updating the other thread because no one seemed interested ....
Never let that stop you from doing something you believe in.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: MFC packs its bags and leaves
« Reply #5 on: November 26, 2012, 07:04:21 pm »

Never let that stop you from doing something you believe in.

Oh, I didn't stop.  I've been working on it.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: MFC packs its bags and leaves
« Reply #6 on: November 27, 2012, 12:40:27 am »

What happens when MC18 crashes now that the crash dialog is removed?  I got into a crash loop last weekend and found that dialog to be partially useful. Does that functionality go away?

I'd like to know as well.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71341
  • Where did I put my teeth?
Re: MFC packs its bags and leaves
« Reply #7 on: November 27, 2012, 07:11:52 am »

Most of the features that are missing will appear again soon.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MFC packs its bags and leaves
« Reply #8 on: November 29, 2012, 05:11:45 pm »

I believe with tonight's build (18.0.82), the only missing pieces are:
  • Mini skinning ('Slim' remains)
  • Line-in recording
  • Menalto and HTML gallery upload (Pix01, Facebook, and Flickr remain)


We plan to upgrade line-in recording, and make it use the new Live plugins (so it'll support ASIO, loopback, etc.).  It may be a while before it reemerges.

For galleries, we're going to wait and see.  I think we have the three most important working.

Mini skinning is the trickiest one.  We'd like to find a way to maintain support, but the COM and Javascript underpinnings make it a bear.
Logged
Matt Ashland, JRiver Media Center

SamuriHL

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 969
Re: MFC packs its bags and leaves
« Reply #9 on: November 29, 2012, 05:13:20 pm »

Awesome.  :)
Logged

ThoBar

  • Citizen of the Universe
  • *****
  • Posts: 992
  • Was confishy
Re: MFC packs its bags and leaves
« Reply #10 on: November 30, 2012, 12:20:27 am »

Will this impact on your ability to interpret gestures such as drags and swipes?

I am not sure it's high on your priority list, but better touch usage would be nice - even in Standard view (e.g. dragging a tree or list with a finger).

{edit} Not expecting you to keep MFC obviously - just asking the question...
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MFC packs its bags and leaves
« Reply #11 on: November 30, 2012, 08:38:16 am »

MFC is unrelated to gestures.

For example, Theater View already supports Windows flick gestures (WM_TABLET_FLICK).

I agree touch will become increasingly important.
Logged
Matt Ashland, JRiver Media Center

Castius

  • Citizen of the Universe
  • *****
  • Posts: 562
Re: MFC packs its bags and leaves
« Reply #12 on: December 03, 2012, 12:07:20 pm »

It can't be said enough. Your communication with your users is incredible.
Keep up the good work.
Logged
Pages: [1]   Go Up