Is there any way to convert MFC application to C# app?
-
There is an extreme push towards .NET, but no clear way to go with traditional MFC application. Would be interesting opinion of Micrrosoft guru on that. Just woundering, is there any way to convert MFC application to C# app or C++/CLI (rewrite option is not acceptable)? And how traditional MFC MDI application have to be migrated/mutated towards .NET? I'll appreciate any opinions/suggestions. Thanks.
-
There is an extreme push towards .NET, but no clear way to go with traditional MFC application. Would be interesting opinion of Micrrosoft guru on that. Just woundering, is there any way to convert MFC application to C# app or C++/CLI (rewrite option is not acceptable)? And how traditional MFC MDI application have to be migrated/mutated towards .NET? I'll appreciate any opinions/suggestions. Thanks.
To go to C# would be a rewrite - different framework, different language. C++/CLI is the only language that allows you to mix unmanaged code with managed code. While this is powerful, it also adds to the complexity. Going back and forth between managed and unmanaged code is tricky at first - there's a learning curve there. If you want to hold on to your MFC-based codebase, and still take advantage of the rich .NET framework, then C++/CLI is the only way to go. From my experience this works well. My 2 cents. Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder