带有 .NET 库的 VB6

发布于 2024-09-06 12:59:25 字数 75 浏览 3 评论 0原文

我有一个用 VB6 编写的应用程序,并且需要使用用 .NET 编写的库。有什么方法可以在我的应用程序上使用该库吗?

谢谢

I have an application written in VB6, and I need to use a library written in .NET. Is there any way to use the library on my application?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

怀中猫帐中妖 2024-09-13 12:59:25

这取决于。您可以控制 .NET 库吗?

如果是这样,您可以修改您的库,以便将其注册为 COM 组件。然后您可以使用 VB6 中的 COM 组件。

您可以按照此 CodeProject 教程逐步指导如何在 .NET 中创建 COM 组件、注册它,然后从 VB6 调用它:

向 COM 公开 .NET 组件

It depends. Do you have control over the .NET library?

If so, you can modify your library so that it can be registered as a COM component. You can then utilize the COM component from VB6.

You can follow this CodeProject tutorial for step by step directions on creating a COM component in .NET, registering it, and then calling it from VB6:

Exposing .NET Components to COM

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文