无法运行VB6.0 exe但是能够从visual basic IDE运行它 [英] Not able to run VB6.0 exe however able to run it from visual basic IDE

查看:131
本文介绍了无法运行VB6.0 exe但是能够从visual basic IDE运行它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Not Able to run VB6.0 Exe However able to run it from Visual Basic IDE





I有.net dll,当我试图在VB应用程序中添加引用时,它给了我错误,因为无法添加对指定文件的引用。



我是什么尝试过:



我准备了带有互操作选项的dll复选框并在系统32中复制了dll



I have .net dll and when i am trying to add the reference in VB application it is giving me error as cant add reference to specified file.

What I have tried:

I have prepared the dll with interop option checkbox and copied dll in system 32

推荐答案

为了能够在任何应用程序中使用.net dll(即使在MS Excel,Word等中),您必须在GAC中注册它。请参阅:将装配安装到GAC | Microsoft Docs [ ^ ]
To be able to use .net dll in any application (even in MS Excel, Word, etc.), you have to register it in GAC. See: Install an assembly into the GAC | Microsoft Docs[^]


这是一篇关于如何从VB6调用VB.NET dll的文章,但我认为你赢了'喜欢它:)

https://support.microsoft.com/en-us/help/817248/how-to-call-a-visual-basic-net-or-visual -basic-2005-assembly-from-visu [ ^ ]
Here's an article about how to call a VB.NET dll from VB6, but I think you won't like it :)
https://support.microsoft.com/en-us/help/817248/how-to-call-a-visual-basic-net-or-visual-basic-2005-assembly-from-visu[^]


这篇关于无法运行VB6.0 exe但是能够从visual basic IDE运行它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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