如何将VB6代码转换为C#? [英] How can I convert VB6 code to C#?

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

问题描述

有人知道从VB6代码转换为C#的方法吗?

Does anyone know a way to convert from VB6 code to C#?

有没有可以帮我做到这一点的工具?

Is there a tool that can do this for me?

推荐答案

VisualStudio提供了(或至少提供了)一个向导来完成从VB6到VB.NET的转换(然后可以通过一些工作将其转换为C#) ,可能是受#develop的VB.NET<-> C#转换器的帮助),但是最后一次使用它时,对于任何不平凡的事情,都需要做大量的手工工作,因此我怀疑您最好改写或如果这是一个大型和/或重要的应用程序,请手动移植.

VisualStudio offers (or at least offered) a wizard to do a conversion from VB6 to VB.NET (which could then be converted to C# with a bit of work, possibly helped by #develop's VB.NET <-> C# converter), but when last I used it, for anything non-trivial there was a lot of manual work needing to be done so I suspect you're probably better rewriting or porting by hand if this is a large and/or important application.

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

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