c# - VB6 应用程序的迁移

标签 c# java vb.net vb6 vb6-migration

将 VB6 应用程序迁移到 .NET 平台几乎就像重写,无论是 VB.NET 还是 C#。与 .NET 平台相比,您是否认为在 Java 平台上需要付出更多的努力,因为它无论如何都是重写的?请分享您的想法!

最佳答案

没有冒犯,但你错了。移植到 .Net 通常比重写容易。

这是来自 Microsoft UK 的官方建议:

Performing a complete rewrite to .NET is far more costly and difficult to do well [than converting] ... we would only recommend this approach for a small number of situations.

来自blog post由咨询重写的 Microsoft 人员提供:

Many companies I worked with in the early days of .NET looked first at rewriting driven in part by a strong desire to improve the underlying architecture and code structures at the same time as they moved to .NET. Unfortunately many of those projects ran into difficulty and several were never completed. The problem they were trying to solve was too large

我建议按顺序执行以下两个步骤。

  1. 写下迁移或重写的原因。 它会带来什么好处?好处可能只是让开发团队开心 - 这甚至可能是一个足够好的理由,我不知道。确保你知道,并且你的经理/用户同意。
  2. 查看 Microsoft UK advicescreencast解释 .Net 迁移的 5 个基本选项。决定哪个最好。它可能正在重写,但请睁大眼睛进入它。

回答您的实际问题:在 .Net 或 Java 中完全重写会更容易吗?那mainly depends on你的团队最了解哪一个。它还在一定程度上取决于应用程序是否与 COM 交互,就像 SLaks 所说的那样。

关于c# - VB6 应用程序的迁移,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2812224/

相关文章:

java - 我的 Java 程序在计算机上编译,但在网站 URI 上出现运行时错误

vb.net - 如何防止缩小和后期绑定(bind)?

c# - 你能用 C# 编写单元测试程序集来测试用 VB 编写的程序集吗?

c# - 如何将图片保存到sqlite数据库

java - 无法找到或加载主类: Executable JAR from Maven

java - 根据应用程序 war 文件外部指定的属性加载变量 spring applicationContext.xml 文件?

c# - InvalidOperationException 未处理 - 数据 GridView 问题

c# - 根据请求从 MVC web api 返回 xml 或 json

c# - 我需要处置 FileStream 对象吗?

c# - 如何确定 USB 端口的速度?