迁移一个Delphi 7应用程序到.NET [英] Migrating a Delphi 7 application to .NET

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

问题描述

在如何迁移在Visual Studio 2005中现有的Delphi 7的业务应用程序到.NET 2.0有什么建议?

Any advice on how to migrate an existing Delphi 7 business application to .NET 2.0 in Visual Studio 2005?

Visual Studio 2005中已被购买,该公司希望从Borland / codegear工具搬走。

Visual Studio 2005 has already been purchased, the company wants to move away from the Borland/Codegear tools.

应用程序是一个单一的客户端服务器上的可执行文件,利用一些第三方的UI控件和Crystal Reports 10的报告。

The application is a single client server executable, utilizing a number of 3rd party UI controls and Crystal reports 10 for reporting.

目前整个德尔福类型的UI广泛的业务逻辑US $ p $垫以及众多的SQL Server 2000存储过程。移动多的存储过程逻辑到.NET类是另一个目标。

There is extensive business logic spread across Delphi types in the UI as well as many SQL Server 2000 stored procedures. Moving much of the stored proc logic into .NET classes is another goal.

要减少对客户的影响,一块一块的办法,而不是一个完全重新编写/转换将是preferred,如果可能的话。先谢谢了。

To reduce impact on customers, a piece by piece approach rather than a complete re-write/conversion would be preferred, if possible. Thanks in advance.

[更新]有没有人有任何经验,好的,坏的和丑陋的,使用托管VCL这种类型的场景?

[Update] Has anyone had any experience, good, bad or ugly, using Managed VCL for this type of scenario?

推荐答案

我曾在被迁移从德尔福WPF / .NET大约2007年。那我们尝试了一块一块的方法的公司。这是痛苦的。我们一直运行到了互操作微妙的错误。调用从德尔福WPF或WinForms和背部是痛苦的。如果不同的UI控件和对方很多应用程序调用的窗口,我想你会体验显著的成长的烦恼。

I worked at a company that was migrating from Delphi to WPF/.Net circa 2007. We tried a piece by piece approach. It was painful. We were always running into subtle bugs in the interop. Calling from Delphi to WPF or Winforms and back is painful. If the various UI controls and windows of your application call on each other a lot, I think you will experience significant growing pains.

如果你能负担得起做一次我会去为它的整体转换。如果没有,拆了你的应用程序中是独立的或具有最小的交互与应用程序的其余部分。

If you can afford to do the whole conversion at once I would go for it. If not, split out the parts of your app that are stand-alone or have the minimum of interactions with the rest of the app.

我也建议跳进净2008年你为什么要选择一个技术,是近4岁(2005年VS)?我认为这是一个非常,非常糟糕的商业决定选择跳入NET 2.0时的.Net 3.5非常稳定。唯一有效的原因,我会永远present,以管理求NET 2.0将是支持Windows 2000。你仍然有顾客在Win2k?你仍然有顾客在Win2k的时候你的转换完成?你有客户你不能移动到XP或Vista?达网络3.0和3.5中不支持的Win2k。这是唯一的缺点我能想到的。

I would also suggest jumping into .Net 2008. Why are you picking a technology that is almost 4 years old (VS 2005)? I think it is a very, very bad business decision to choose to jump into .Net 2.0 when .Net 3.5 is very stable. The only valid reason I would ever present to management for .Net 2.0 would be to support Windows 2000. Do you still have customers on Win2k? Will you still have customers on Win2k by the time your conversion is complete? Do you have customers you cannot get to move to XP or Vista? .Net 3.0 and 3.5 are not supported in Win2k. That is the only downside I can think of.

的.Net 3.5和C#2008报价显著优势,为您的公司。你有一些语言功能,将加快开发时间相比,C#2.0。你有WPF,这是大大优于的WinForms。我认为,你可以开发相同batteleship灰色的Windows,你会得到的WinForms与WPF,更快地发展它们,当你需要一些养眼,你将使用一种技术,可以很容易地提供它。如果你正在学习一门新的窗口平台,为这种转换,为什么不投资在学习新的东西吗?

.Net 3.5 and C# 2008 offer significant advantages for your company. You have a number of language features that will accelerate develop time compared to C# 2.0. You have WPF, which is vastly superior to Winforms. I would argue that you can develop the same batteleship-gray Windows you would get in Winforms with WPF, develop them faster, and when you want some eye-candy you will be using a technology that can easily provide it. If you are learning a new windowing platform for this conversion, why not invest in learning the new stuff?

另外,请告诉我你没有实际购买VS 2005。你可以买一个的有关同一成本的MSDN Universal 许可,并得到每个开发相关产品,Microsoft不做。从第三方购买它,你会得到一个很好的折扣。

Also, please tell me you didn't actually buy VS 2005. You can buy an MSDN Universal license for about the same cost, and get every development related product Microsoft makes. Buy it from a 3rd party and you will get a good discount.

对不起,如果我来了客负。真诚,好运气的迁移。我只是有倒叙的时候我觉得不得不放弃所有的好东西在.NET 3.5中的。

Sorry if I came off negative. Sincerely, good luck on the migration. I just have flashbacks when I think of having to give up all the goodies in .Net 3.5.

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

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