At a broader level, I'm converting a MFC application (MFC 6.0)
into Windows Forms application (Visual Studio 2013)
. I read certain blogs that describes that this conversion is possible. By this conversion I can re-use code written in MFC, only I will need to create UI. However I will need to understand the previous code and may need to re-write it a bit.
I got the motivation from here and here.
I have performed following steps so far.
- Opened Visual C++ 6.0 project in Visual Studio 2013.
- Build it successfully.
- Then added CLR support to it, and fixed errors.
- Added a Windows form, and added controls to it. As mentioned here.
- Added functionality and build it successfully.
- Now when I run this application, then it still point to old MFC window.
I'm missing certain settings which will change the rendering window from MFC to WindowsForm. What am I missing here?
Addition to that, I see problem with this approach as described by @Roger in comments, and I understand that. So, I wanted to know for any tool/utility which may convert legacy code into C#. Does such utility available?
TIA.