Can a VB6 project use a .Net .dll

只愿长相守 提交于 2019-12-14 01:14:43

问题


I have a VB6 project. My question is can I call a .NET .dll that has all the business rules of the project (from the VB6 application)?

Basically I have a VB6 project with a classic ASP project calling a vb6/ActiveX .dll. The requirement is to figure out the best way to upgrade the application. So, if I update the ActiveX .dll can the VB6 app call that new .NET .dll?

I guess the same question is viable for the classic ASP project as well...

Thanks!


回答1:


Yes, but you need to make the .Net types Com Visible.

Here's a walkthrough

Also see Matt's comment below regarding array indices and strings.

The fact that it's possible doesn't make it a good idea though...



来源:https://stackoverflow.com/questions/5721071/can-a-vb6-project-use-a-net-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!