有没有办法将 Delphi 2010 表单迁移到 Delphi Prism (.Net ) XE 表单?
我知道,由于“本地”delphi 和 delphi.net 是不同的技术,因此不太可能生成可以将旧 dfm 表单迁移到 delphi prism 表单的工具。但是有没有一种工具可以促进这种迁移呢?基本上我有一个“本机”delphi 项目,我想将其迁移到 delphi .net,它是一个桌面应用程序,我该怎么做?
I know that since "native" delphi and delphi.net are different technologies it is unlikely to produce a tool that can migrate your old dfm forms to win forms for delphi prism. However is there a tool that facilitate such migration? Basically I have a "native" delphi project that I want to migrate to delphi .net, it is a desktop application, how do I go about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VCL 和 Winforms 有很大的不同,使得这种转换并不容易。还有一些特定于 Delphi 的组件,没有直接的 .NET 对应组件,如果使用不受支持的第三方控件,转换工具可能会失败。旧的 VCL.NET 框架试图使这种转换更容易,但失败了。可以编写一个转换工具,但恕我直言,它的用途有限,仅适用于简单的表单。我不认识任何人,而且因为大多数从 Delphi 迁移到 .NET 的开发人员都采用了 VS/C# 方式 - 我认为将桌面应用程序从 Delphi 迁移到 Prism 没有什么优势 - 几乎没有理由编写一个。
VCL and Winforms are enough different to make such conversion not easy. There are also some components that are Delphi specific without a direct .NET counterpart, and a conversion tool probably would fail if unsupported third party controls are used. The old VCL.NET framework was an attempt to make that transition easier, but failed. A conversion tool may be written, but IMHO it would be of limited use and work for simple forms only. There's no one I am aware of, and because most developers that migrated from Delphi to .NET went the VS/C# way - I see very little advantages of moving a desktop application from Delphi to Prism - there are very little reasons to write one.
我知道移植
Delphi Win32
和的唯一工具Delphi .Net
代码到Delphi-Prism
是Oxidizer
,但此应用程序不会将 Delphi 表单转换为 Winforms , Oxydizer 非常适合转换库代码和其他非视觉相关代码,但它仍然是帮助您翻译 Delphi 代码的绝佳选择。您可以在此链接中找到更多信息
The only tool wich i know to port
Delphi Win32
andDelphi .Net
Code toDelphi-Prism
isOxidizer
, but this app does not translate the Delphi forms to Winforms, Oxydizer is good for converting library code and other non-visual related code, however it is still a great option to help you to translate your Delphi code.you can found more info in this link