February 9, 2006
The best new feature of MFC 8 (VS2005)
While the most people only look at new features of the .NET-Framework or C#, there are also improvements in MFC (There’s life in the old dog yet)!
One of the biggest improvements is the better integration of windows-forms controls into existing MFC applications.
The key to this really exiting feature is CWinFormsView , CWinFormsControl and CWinFormsDialog
With these classes you can use windows-forms controls inside your MFC dialogs/windows. This is really great and you can smothely migrate from your existing MFC application to the managed .NET-world! And with the improvements in C++/CLI this makes C++ really to the best languages ever!
Just some additions: Here you can find some articles about MFC and Window-Forms integration:
- Windows Forms/MFC Programming Differences
- Hosting a Windows Form User Control in an MFC Dialog Box
- Hosting a Windows Form User Control as an MFC View
- Hosting a Windows Form User Control as an MFC Dialog Box
- Blog by Yves Dolce: MFC 8 (VC++ 2005) and Windows Forms
You can also download a sample project which gives you some insight on how to do this:
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/70/
Comments have now been turned off for this post