none
MFC to C# converter?

    Question

  • I was wondering if anyone knows of a utility that will convert MFC projects to C#, or at least convert .rc files to basic .NET Windows Forms?  We are looking to convert an MFC based utility to Windows Forms (C#), and would love to leverage our current dialogs as a starting point to reduce the amount of time building windows.  We're undertaking this effort because we'd prefer not to marshal everything back and forth with our new C# business logic layer.

    Thank You,
    Josh Lindenmuth

    Tuesday, September 20, 2005 12:36 AM

Answers

All replies

  • I haven't encountered anything that will automate the process of converting MFC to WinForms. Something that might help... You may want to check out Genghis, which is a set of classes that mimic parts of MFC functionality lacking in WinForms.

    http://www.genghisgroup.com

    Genghis is free to use and was started by the prolific Chris Sells.
    Tuesday, September 20, 2005 9:59 PM
  • What we're primarily looking for is a quick way to convert our resource (.rc) file from a Visual studio 6/MFC app to C# WinForms.  This seems like it should be straightforward, particularly since we're using standard controls. 

    Any help would be appreciated, thanks,
    Josh Lindenmuth

    Thursday, September 22, 2005 12:19 AM
  • There is one called RC Converter by DudeLabs (http://www.dudelabs.com)  if you still need one.I faced the same problem but luckily I found one. Hope it helps.
    Wednesday, December 21, 2005 1:28 AM
  • Try this link, http://www.dudelabs.com/ the converter is only useful to speed up the process, like it will convert your rc file, and create the  forms  and basic structure but eventually you will have to go line by line to put the business logic in C#. When converting MFC projects you have to consider differnt options such as, would it be easier to completely rewrite the application, can you write a wrapper around the mfc code that can be called by .net app, or should a converter be used. Personally, I think writing the wrapper is the quickest, cheapet and least risky option (basically convert your mfc code to a COM dll which can be easily called by .net libraries and application).

    Hope this helps,

    Syed

    Tuesday, May 11, 2010 8:13 PM