Bouncycastle embed dll in my c# dll to operate in vb6

Bouncycastle embed dll in my c # dll to operate in vb6

我想知道我是否可以在 VB6 中获得有关我的 C# DLL 的帮助,因为当我编译我的 DLL 时,它会编译两个 DLL,一个是 bouncycastle.dll,另一个是 MyLibrary.dll。注册我的 DLL 后,我 运行 我的代码出现错误:

"Can not load file or assembly Org.BouncyCastle ....".

有人可以指导我吗?

谢谢你,对不起我的英语! :-)

我找到了解决问题的方法。我在命令行中使用命令 "csc.exe".

添加引用

我留下我的解决方案,以防有人为您服务!

csc target:module /reference:C:\testvb6\projectCDLL\packages\BouncyCastle\BouncyCastle.Crypto.dll C:\testvb6\projectCDLL\test.cs

总之非常感谢! ;)

问候,祝你好运!