开发者

registering .net assembly as com

开发者 https://www.devze.com 2023-03-12 11:37 出处:网络
I have a C# class library which calls a native code DLL. I am trying to call this code from VBA. I configured MSVC to register the generated DL and it works fine. I can access objects in DLL and work

I have a C# class library which calls a native code DLL. I am trying to call this code from VBA. I configured MSVC to register the generated DL and it works fine. I can access objects in DLL and work with them without any problem. I want to register them in another computer and I am using the following command: %windir%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /tlb /v MyNetAssembly.DLL

The command return succes开发者_如何学Csfully but when I am trying to use the dll objects in VBA, I am getting error file not found (80070002). I tried to add path to the place that dll resides, copy the dlls to windows directory, using /codebase option, without any success.

What is the problem and how can I solve it?

0

精彩评论

暂无评论...
验证码 换一张
取 消