将vb6代码转换为vb.net [英] converting vb6 code to vb.net

查看:130
本文介绍了将vb6代码转换为vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将vb6代码转换为vb.net?有没有可用的转换工具和它有多可靠?

how can i convert a vb6 code into vb.net? Is there any converting tool available for that and how much reliable it is?

推荐答案

这取决于VB6代码做什么....没有简单的方法来实现那。请参阅: .NET代码转换 - 转换代码 [ ^ ]



更多:

迁移您的VB6代码到VB.NET [ ^ ]
It depends on what VB6 code do.... There is no simply way to achieve that. Please see this: .NET Code Conversion - Convert your code[^]

More:
Migrate Your VB6 Code to VB.NET[^]


这个CodeProject文章将为您提供一个非常好的主意:将VB6升级到VB.NET [ ^ ]。



但是,请不要期待好的结果。由于与绝对可怕的VB6相比,.NET的概念非常不同且功能强大,因此成功率最高,而且翻译质量难以接受。在最好的情况下,将自动迁移的结果仅作为初始步骤考虑是明智的。您需要认真学习.NET并在新项目中正确使用此技术。在许多情况下,自动迁移只能延迟这一目标,与使用.NET从头开始编写新项目的策略相比,仅使用VB6源作为参考。它实际上在很大程度上取决于您的遗留代码有多糟糕。



-SA
This CodeProject article will give you a pretty good idea: Upgrading VB6 to VB.NET[^].

However, please don't expect good results. As the concepts of .NET are very different and powerful compared to absolutely dreadful VB6, the rate of success will be moderate at best, and the quality of translation can hardly be acceptable. It would be wise to consider the result of automatic migration only as the initial step, in best case. You will need to learn .NET seriously and use this technology properly in new project. In many cases, automatic migration can only delay this goal, compared to the strategy of writing your new project using .NET from scratch, using your VB6 source only for reference. It actually highly depends on how bad is your legacy code.

—SA


取决于你的长期策略是什么。

你想花多少钱与节省的时间等等。

加上你永远不会得到100%的转换,除非申请是真的很简单。在这种情况下,问题是为什么不只是重写它。

看看迁移伙伴(vbmigration dot com)。看起来不错。我玩了一下,甚至在一个阶段得到了引用,但最后我们决定使用java将我们的应用程序重写为瘦客户端。
depends on what your long term strategy is.
how much you want to spend vs the saving in time etc.
plus you never going to get a 100% conversion unless the application is really simple. in which case the question would be why not just re-write it.
have a look at migration partner (vbmigration dot com) .seems decent enough. I played with it a bit and even got a quote at one stage but in the end we decided to rewrite our app into a thin client using java.


这篇关于将vb6代码转换为vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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