转换一个大的MFC应用到.NET [英] Converting a large MFC app to .net

查看:142
本文介绍了转换一个大的MFC应用到.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个体面的大小MFC MDI桌面应用程序。有没有一种合理的方式来一个MFC应用程序转换为.NET应用程序或者是它最好只是重写?如果答案是应用特定的,你用什么标准来做出决定?

We have a decent size MFC MDI desktop app. Is there a reasonable way to convert a MFC app to a .net app or is it better to just rewrite? If the answer is app specific, what criteria do you use to make the decision?

推荐答案

我会跳过WinForms和头部右侧为WPF。

I would skip WinForms and head right for WPF.

根据您的应用程序的设计,你不应该重写一切。您还可以从使用​​托管C ++包装C#code C ++ code,让您重新使用现有的C ++ code。微软还对WPF和Win32 / MFC之间的互操作大量的文档。你可以做类似的事情的WinForms。

Depending on how your application is designed, you shouldn't have to rewrite everything. You can call C++ code from C# code using Managed C++ wrappers, allowing you to reuse existing C++ code. Microsoft also has extensive documentation on interoperation between WPF and Win32/MFC. You can do similar things with WinForms.

微软已经竭尽全力提供的WinForms从MFC迁移路径/ WPF,因为他们知道企业不能只是扔掉多年的发展code。

Microsoft has gone to great lengths to provide migration paths from MFC to WinForms/WPF because they know companies can't just throw away years of developed code.

另外,如果你谷歌WPF与MFC,你会发现很多的使用这两种技术在同一项目中的人的例子。

Also, if you google "WPF and MFC" you'll find lots of examples of people using the two technologies in the same project.

这篇关于转换一个大的MFC应用到.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆