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?
精彩评论