Problem in calling a C++ dll function from C#
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This is my 3rd thread concerning a blowfish problem in C#.Despite the fact I cannot have blowfish implemented in my application, I decided to use it as an external C++ dll. Please note I've tried Blowfish.NET and any other, the problem is that I'm translating code from C++ to C# and the C# code must do exactly the same as the C++ code does. So far: --->C++ DLL source<--- Note the exported functions are in the end of the code C# code(definition) [ DllImport ( "TestDLL.dll" , EntryPoint = "Initkey" , ExactSpelling = true ,