# Thursday, 11 August 2011
I'm pleased to see that Kenny Kerr is writing his C++ column for MSDN again. He's also blogging again and in a recent entry, he provides some really plain-spoken advice to people looking for guidance:

  • "You can of course still use MFC but I do not recommend it as modern C++ can do a better job of supporting the Windows developer."
  • "You should never again use auto_ptr for anything."
So there! I agree with these, especially the auto_ptr one. It was an attempt at a smart pointer that just wasn't smart enough. We have shared_ptr and unique_ptr now and they work in collections and are truly smart pointers. Use them and stop typing delete in your code entirely.

As for MFC, it does fill a need and I certainly wouldn't scrap a working MFC app just because the library is getting old (the facelift a few releases ago helped) but if I was starting a brand new application from File, New Project I would need a good reason to use MFC as my UI framework.


Thursday, 11 August 2011 13:29:29 (Eastern Daylight Time, UTC-04:00)  #    Comments [3]
Sunday, 04 September 2011 22:35:12 (Eastern Daylight Time, UTC-04:00)
Which other Microsoft UI framework should I consider use with C++?
Tuesday, 06 September 2011 11:06:31 (Eastern Daylight Time, UTC-04:00)
Interesting that there was no answer to Ari's question. It is the question that every C++ developer should be asking at the BUILD conference next week. Seems like maybe Microsoft will announce something interesting, but whatever it is, it needs to *replace* something. Microsoft needs to stand up and say, "Here is the new UI framework for native C++ development. You should now stop using frameworks x, y, and z for new projects". We need clarity.

Thursday, 08 September 2011 10:08:04 (Eastern Daylight Time, UTC-04:00)
I second Ari's question as well. Kate, if you were starting from File, New Project, what unmanaged UI framework would you use? Besides MFC I don't know of any Microsoft alternative. I'm left wondering if you would prefer to use a non-Microsoft offering such as Qt or wxWidgets. Or perhaps you implying that you would just do the UI in managed code. I'm not sure, and would like to hear your opinion on the matter.
Kevin Peters
Comments are closed.