Hi all,
I'd like using cryptopp 5.21 dll from a managed c++ project with Visual
Studio 2003, but I get a lot of problems.
I've used code similar to the faq example for AES encryption and
encryption but when I compile my project, I have some linking errors like
Error 703 error LNK2001: unresolved external symbol "public: virtual
void __thiscall CryptoPP::DES::Base::ProcessAndXorBlock(unsigned char
const *,unsigned char const *,unsigned char *)const "
([EMAIL PROTECTED] [EMAIL PROTECTED]@@[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]@@%5BEMAIL%20PROTECTED%5D>)
that I've already seen in a post in this mailing list. I've tried to add
CRYPTO_DLL before the symbols that cause linking errors and so I build
the project correctly.
But now I get errors at runtime. For example if I just try to include
"dll.h" without calling any cryptopp function or use any cryptopp class,
I get an "Access violation reading 0x00000000 address" error or a
System.NullReferenceException if I declare SetNewAndDeleteFromCryptoPP.
Does anyone have any idea about how I can use the cryptopp dll in a
managed c++ project?
Thanks in advance.
Davide Fais.