[botan-devel] Error Compiling Botan with VS2008 and unicode character project setting

Jack Lloyd lloyd at randombit.net
Mon Dec 12 16:26:47 EST 2011

On Mon, Dec 12, 2011 at 09:54:35PM +0100, tobeki at gmx.de wrote:

> ...
> #if defined UNICODE
> lib = ::LoadLibrary(reinterpret_cast<LPCWSTR>(lib_name.c_str())); // or LoadLibraryW
> #else
> lib = ::LoadLibrary(lib_name.c_str()); // or LoadLibraryA
> #endif 

That reinterpret_cast<LPCWSTR> looks pretty dubious to me, does this
really work? Or just compile? I'm thinking this should perhaps be
LoadLibraryA to force ANSI regardless of project settings.

> Is it possible to deactivate the dynamic load engine module by “python configure.py...” ?

Yes, `configure.py --disable-modules=dyn_load`


More information about the botan-devel mailing list