将 vb6 应用程序转换为 C# 时只保留 GUI? [英] keep only GUI when converting vb6 app to c#?

查看:24
本文介绍了将 vb6 应用程序转换为 C# 时只保留 GUI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大型 VB6 应用程序,我想将其转换为 C#.

I have a large VB6 app which I want to convert to C#.

VB6 中的大部分代码都写得很糟糕.

The majority of the code in VB6 is quite badly written.

我认为一个好的策略是保留 GUI 设计,因为它已经足够了,并且很难重新创建.但我想重写 GUI 和数据层背后的代码.

I thought that a good strategy would be to keep the GUI design since it is adequate and would be a pain to recreate. But I would want to rewrite the code behind the GUI and the data layer.

我可以使用 Microsoft 提供的 VB6 到 .NET 转换器之一来保持 GUI 设计.

I could keep the GUI design by using one of the VB6 to .NET converters provided by Microsoft.

这是一个好的策略吗?

推荐答案

有多种迁移工具可以执行从 VB6 到 .NET 语言的迁移,当今最好的一种是 VBUC ,但是如果您重写底层代码,最好也重写 GUI 层,因为迁移工具通常不会t 在 gui 迁移方面做得很好,生成的 gui 通常看起来很丑陋和老式".

There are several migration tool to perform a migration from VB6 to a .NET language, one of the best today is VBUC , however if your rewriting your underlying code maybe it is better to rewrite also the GUI layer, because the migration tools usually don't do a perfect job with gui migration and the generated gui often looks ugly and "old-style".

这篇关于将 vb6 应用程序转换为 C# 时只保留 GUI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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