使用Interop转换VB6应用程序Vb.Net [英] Converting VB6 application Vb.Net using Interop

查看:107
本文介绍了使用Interop转换VB6应用程序Vb.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个相当大的应用程序,用VB6编写。

我想使用Interop将其转换为Vb.Net,但不知道该怎么做。



应用程序太大了我真的不能在VB.Net中重写它。



谢谢和最好的问候,

Furqan

Hi,

I have a fairly large application, written in VB6.
I want to convert it to Vb.Net using Interop, but do not know how to do it.

The application is so big that I really can''t re-write it in VB.Net.

Thanks and best regards,
Furqan

推荐答案

有几种工具可供您使用。自己编写转换器可能需要更多时间来重写应用程序本身。谷歌例如将vb6转换为vb.net,你会得到如下结果:

- http://www.visualwebgui.com/Gizmox/Landing /tabid/674/articleType/ArticleView/articleId/909/SaaS-Web-Cloud-and-Mobile-enablement-of-your-VB6-application.aspx?gclid=CPOb8JmT5acCFYZH3godimrcNw [ ^ ]



- http://www.artinsoft.com/pr_vbcompanion.aspx?gclid=CKTEy5qT5acCFYGCDgodYUbLTA [ ^ ]



- http://www.vbmigration.com/ [ ^ ]
There are several tools available to do this for you. Writing the converter yourself more likely takes more time that rewrite the application itself. Google for example "convert vb6 to vb.net" and you''ll get results like:
- http://www.visualwebgui.com/Gizmox/Landing/tabid/674/articleType/ArticleView/articleId/909/SaaS-Web-Cloud-and-Mobile-enablement-of-your-VB6-application.aspx?gclid=CPOb8JmT5acCFYZH3godimrcNw[^]

- http://www.artinsoft.com/pr_vbcompanion.aspx?gclid=CKTEy5qT5acCFYGCDgodYUbLTA[^]

- http://www.vbmigration.com/[^]


有vb6到vb.net转换器。

他们花钱并且不完全可靠。



几年来,微软一直在告诉人们我们不再支持VB6,所以即使他们的转换器也不再可用。



你会我不得不咬紧牙关,从头开始手动重写VB.Net代码。
There are vb6 to vb.net converters.
They cost money and are not entirely reliable.

For several years now Microsoft have been telling people "We no longer support VB6", so even their converter is no longer available.

You will have to bite the bullet I''m afraid, and start from scratch on a manual rewrite of the VB.Net code.


你可以使用Interop Forms Toolkit ,以使用现有VB6应用程序中的VB.Net控件。您还可以在VB.Net应用程序中使用VB6控件。您可能还可以使用从VB6调用VB.Net DLL 。同样,您可以执行相反的操作并从VB.Net调用VB6代码



这些链接应该允许你慢慢迁移到VB.Net。其他人已经介绍了如何将VB6代码转换为VB.Net代码。通过组合Interop Forms,代码互操作和代码转换,您应该能够立即将最大的应用程序迁移到VB.Net,同时立即查看结果。
You can use the Interop Forms Toolkit to use VB.Net controls from your existing VB6 application. You can also use VB6 controls in your VB.Net application. It may also be of use to you to call a VB.Net DLL from VB6. Again, you can do the reverse and call VB6 code from VB.Net.

Those links should allow you to migrate slowly to VB.Net. The others have already covered how you can convert VB6 code to VB.Net code. By combining Interop Forms, code interop, and code conversion, you should be able to migrate even the largest applications to VB.Net over time while seeing results immediately.


这篇关于使用Interop转换VB6应用程序Vb.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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