[英]Sentinel HASP returns NoApiDylib for 64bit DLL
Since my solution should be buildable for AnyCPU I had to choose the right Hasp DLL during runtime.由于我的解决方案应该可以为 AnyCPU 构建,因此我必须在运行时选择正确的 Hasp DLL。 This works quite nice with the proxy pattern.
这对代理模式非常有效。 When I use the 32bit hasp_net_windows.dll everything works fine and I am able to login to the dongle successfully.
当我使用 32 位 hasp_net_windows.dll 时,一切正常,我能够成功登录加密狗。
But while using the x64 DLL the hasp.Login(...) returns NoApiDylib.但是在使用 x64 DLL 时, hasp.Login(...) 返回 NoApiDylib。 Seems like this is a problem regarding the HASP DLL or the communication to the USB Dongle.
似乎这是关于 HASP DLL 或与 USB 加密狗的通信的问题。 But I am not able to narrow it down.
但我无法缩小范围。
Have you any ideas?你有什么想法吗? Thanks in advance!
提前致谢!
Please check that in your directory present those files:请检查您的目录中是否存在这些文件:
1. hasp_windows_XXXXX.dll 1. hasp_windows_XXXXX.dll
2. hasp_windows_x64_XXXXX.dll 2. hasp_windows_x64_XXXXX.dll
3. apidsp_windows.dll 3. apidsp_windows.dll
4. apidsp_windows_x64.dll 4. apidsp_windows_x64.dll
5. hasp_net_windows.dll 5. hasp_net_windows.dll
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.