Visual Studio 2010 SP1 Beta: What’s new in MFC?

December 25, 2010

The recently released Visual Studio 2010 SP1 Beta brings many enhancements and bug fixes found since the product’s launch, most of them in the managed world. However, there are new enhancements to the good(?) old MFC, namely wrapping of some of the Direct2D interfaces.

Direct2D is a new layer in the DirectX world, sitting on top of Direct3D, providing high performance and flexible 2D graphics. It was introduced with Windows 7 and Windows 2008 R2, but it’s also possible to install it on Windows Vista. What’s wrong with Direct3D? Nothing, but doing 2D graphics is difficult using the Direct3D API alone. The old DirectDraw interfaces are good at blitting images (“sprites”) but no nothing about 2D shapes, such as ellipses, or interesting brushes, such as a linear gradient brush. This is what Direct2D is for (and image blitting as well).

MFC has been around for about 20 years and still around with us today. It’s been criticized as being bloated and poorly designed, especially in today’s standards and the existence of something like WPF hasn’t helped either. However, it’s the only real C++ UI alternative from Microsoft at the moment (although some enthusiastic people use WTL for their UI). Hopefully, Microsoft will come up with a new unmanaged library for doing UI and UX, with power and flexibility rivaling WPF, but until then, we have MFC.

The new Direct2D MFC classes integrate with the rest of the MFC framework, making it easy to integrate into existing applications.

Another new face in MFC is the wrapping the Windows Animation Manager (also introduced in Windows 7) that allows high level animations, somewhat similar to the declarative approach used in WPF and Silverlight.

It’s good to know improvements and enhancements in the Visual Studio ecosystem are present in the native programming world as well as the managed.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

2 comments

  1. ���å� ؔ�� ���� 2013August 17, 2013 ב 05:57

    Customary and Poor’s score company designed it unanimous when using the announcement nowadays that it’s lowering the state’s bond credit rating score from AAA to AA+.

    Reply
  2. http://www.mingshiduotea.com/bbs/forum.php?mod=viewthread&tid=73754August 26, 2013 ב 22:59

    The phonebook about the Nokia X101 isn’t really as potent because the an individual on S40 types, however, you continue to get loads of performance.

    Reply