简体   繁体   中英

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

I'm trying to use crypto++ in c++ clr class library .

The problem is that I get an error as I run the app, but it builds successfully.

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)

This error only occurs when I include anything from crypto++

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

If I remove the following lines, it works.

I've tried copying the cryptopp.dll to the bin/x64/Debug and bin/Debug, but it did not resolve the issue.
What else do I need to include? Am I Missing something?

Dependecies:
依赖


库

建造

解决方案

Error code 0x8007045A most often means 32/64 bit DLL incompatibility.

If you're using native DLLs with managed code, make sure to use 64-bit versions on a 64-bit OS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM