April 17th, 2013, 03:23 PM
Re: LoadLibrary giving system err 183 while loading Crypto dll
How did you create the crypto.dll? cryptopp version 126.96.36.199 is available from Wei Dai's home page as a set of source files to be compiled to produce a .dll. Using their standard build produces cryptopp.dll and cryptopp.lib files. If you have (or can make) the .lib file why are you bothering using LoadLibrary etc when you could just link with the .lib file and include the .h file with your program? This would be my preferred way of doing it when these files are available.
However, as the source of the dll is available then if you build a debug version then you can use the debugger to debug into the dll when dllmain(..) is called to find the problem.
Because decryptAddress is variable containing a pointer to a function and not a function name. It could have been written
int code = (decryptAddress)((char *) pswd, (char *) out, (char*)key);
This is not the usual way that a C++ (or C) programmer calls a function. Why are there parentheses around the name of the function?
but the '*' is now optional.
int code = (*decryptAddress)((char *) pswd, (char *) out, (char*)key);
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
C, C++ Compiler: Microsoft VS2015
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!