为什么vb6会生成一个lib文件和一个activeX dll?

时间:2022-06-01 08:45:41

I working on a c# project. For compiling this project, I need to refer a vb6 dll and this step fails drastically(Reason unknown). But in the vb6 project output folder,I have seen that there is a lib generated along with a dll.

我正在研究一个c#项目。为了编译这个项目,我需要引用一个vb6 dll,这一步骤大大失败(原因未知)。但是在vb6项目输出文件夹中,我看到有一个lib和一个dll一起生成。

I have experience in c++, but I'm net to .Net So, can someone guide me so that I can use that generated lib in my project.

我有c ++的经验,但我是.Net所以,有人可以指导我,以便我可以在我的项目中使用生成的lib。

Thanks in Advance

提前致谢

1 个解决方案

#1


0  

From what I remember, the .lib file in the VB6 output folder is from an intermediate build step, not a final project output. You do need to reference the VB6 dll.

根据我的记忆,VB6输出文件夹中的.lib文件来自中间构建步骤,而不是最终项目输出。你需要引用VB6 DLL。

You didn't mention what problem you had referencing the VB6 dll. It would be a COM dll, so it needs to be registered with regsvr32. Then you should simply be able to add a reference to it under Project -> Add Reference, and locate the dll under the COM tab.

你没有提到你引用VB6 dll的问题。它将是一个COM DLL,因此需要在regsvr32中注册。然后你应该只需要在Project - > Add Reference下添加对它的引用,并在COM选项卡下找到dll。

#1


0  

From what I remember, the .lib file in the VB6 output folder is from an intermediate build step, not a final project output. You do need to reference the VB6 dll.

根据我的记忆,VB6输出文件夹中的.lib文件来自中间构建步骤,而不是最终项目输出。你需要引用VB6 DLL。

You didn't mention what problem you had referencing the VB6 dll. It would be a COM dll, so it needs to be registered with regsvr32. Then you should simply be able to add a reference to it under Project -> Add Reference, and locate the dll under the COM tab.

你没有提到你引用VB6 dll的问题。它将是一个COM DLL,因此需要在regsvr32中注册。然后你应该只需要在Project - > Add Reference下添加对它的引用,并在COM选项卡下找到dll。