简体   繁体   English

VB6 项目可以使用 .Net .dll 吗

[英]Can a VB6 project use a .Net .dll

I have a VB6 project.我有一个 VB6 项目。 My question is can I call a .NET .dll that has all the business rules of the project (from the VB6 application)?我的问题是我可以调用具有项目所有业务规则的 .NET .dll(来自 VB6 应用程序)吗?

Basically I have a VB6 project with a classic ASP project calling a vb6/ActiveX .dll.基本上我有一个 VB6 项目,其中有一个经典的 ASP 项目,它调用了一个 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?那么,如果我更新 ActiveX .dll,VB6 应用程序可以调用那个新的 .NET .dll 吗?

I guess the same question is viable for the classic ASP project as well...我想同样的问题也适用于经典的 ASP 项目......

Thanks!谢谢!

Yes, but you need to make the .Net types Com Visible.是的,但您需要使 .Net 类型 Com 可见。 Also see Matt's comment below regarding array indices and strings.另请参阅下面关于数组索引和字符串的 Matt 评论。 The fact that it's possible doesn't make it a good idea though...然而,它可能的事实并不使它成为一个好主意......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM