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.
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.
Genghis is free to use and was started by the prolific Chris Sells.
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,
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,