如何保证auth.dll可以加载?

How can I ensure that auth.dll can be loaded?

我正在尝试在 c++ clr class 库.

中使用 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 位 OS.

上使用 64 位版本