将 C# (.NET 2.0) 代码转换为 VB6 的转换器?
我已经接管了 VB6 产品,该产品通过 COM 互操作使用大型 C# (.NET 2.0) 组件。
我想如果可能的话将 C# 组件 (Winforms) 降级到 VB6 以删除 COM 互操作层。
是否有转换器可以做到这一点?
I have taken over VB6 product that utilises a large C# (.NET 2.0) component via COM-interop.
I would like to if possible downgrade the C# component (Winforms) to VB6 in order to remove the COM-interop layer.
Does a converter exist to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这是不可能的,因为这些平台的性质非常不同。
I don't think it is possible due to very different nature of these platforms.
我认为最好的选择是使用代码转换器从 c# 转换为 vb .net。
Google:“c# to vb .net”
您甚至可以将这个编译和工作作为中间步骤。
然后你尝试将其放入 VB6 中并“使其工作”。
很多人都在抱怨为什么要这样做……他们说得有道理,但这就是我要完成的方法。不过,我更愿意将 VB6 代码移至 VB .NET :)
I think your best bet would be to use a code converter to go from c# to vb .net.
Google: "c# to vb .net"
You could probably even get this compiling and working as an intermediate step.
Then you try to plop it in VB6 and "make it work".
A lot of people are complaining about why you would want to do this... they have a point, but this is how I'd get it done. Although, I'd much rather move the VB6 code to VB .NET :)