簡體   English   中英

如何確保可以加載 auth.dll?

[英]How can I ensure that auth.dll can be loaded?

我正在嘗試在c++ clr class library 中使用 crypto++。

問題是我在運行應用程序時遇到錯誤,但它構建成功。

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'auth.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
   at ConsoleApp52.Program.Main(String[] args)

僅當我包含來自 crypto++ 的任何內容時才會發生此錯誤

#include "dll.h"
#include "sha.h"
#include "filters.h"
#include "hex.h"

如果我刪除以下幾行,它會起作用。

我已經嘗試將 cryptopp.dll 復制到 bin/x64/Debug 和 bin/Debug,但它沒有解決問題。
我還需要包括什么? 我錯過了什么嗎?

依賴:
依賴


庫

建造

解決方案

錯誤代碼0x8007045A通常表示 32/64 位 DLL 不兼容。

如果您使用帶有托管代碼的本機 DLL,請確保在 64 位操作系統上使用 64 位版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM