将 vb6 应用程序转换为 C# 时仅保留 GUI?
我有一个大型 VB6 应用程序,我想将其转换为 C#。
VB6 中的大部分代码写得相当糟糕。
我认为一个好的策略是保留 GUI 设计,因为它已经足够了,但重新创建会很痛苦。但我想重写 GUI 和数据层背后的代码。
我可以使用 Microsoft 提供的 VB6 到 .NET 转换器之一来保留 GUI 设计。
这是一个好的策略吗?
I have a large VB6 app which I want to convert to C#.
The majority of the code in VB6 is quite badly written.
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.
I could keep the GUI design by using one of the VB6 to .NET converters provided by Microsoft.
Would this be a good strategy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有多种迁移工具可以执行从 VB6 到 .NET 语言的迁移,目前最好的工具之一是 VBUC ,但是,如果您重写底层代码,也许最好也重写 GUI 层,因为迁移工具通常不能完美地完成 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".
请参考我在相关主题中的帖子
stackoverflow
我不会。你有很大的机会从一开始就创造出一些好的东西。不要简单地导入旧的 UI。
Please refer to my post in your related thread
stackoverflow
I would not. You have a great chance to build something good from the start. Don't simply import the old UI.