From 7578f39c9a0aa90bc4e3027f7fcce09e5294cf79 Mon Sep 17 00:00:00 2001 From: Rico P Date: Mon, 30 Oct 2017 11:09:09 +0100 Subject: [PATCH] use Ansi version of LoadLibrary I got the error "C2664: 'HMODULE LoadLibraryW(LPCWSTR)': cannot convert argument 1 from 'const char *' to 'LPCWSTR'". Mapping B3_DYNLIB_OPEN to the Ansi version of LoadLibrary fixed the error for me. --- examples/SharedMemory/b3PluginManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/b3PluginManager.cpp b/examples/SharedMemory/b3PluginManager.cpp index 7ea16c33a..afd352d41 100644 --- a/examples/SharedMemory/b3PluginManager.cpp +++ b/examples/SharedMemory/b3PluginManager.cpp @@ -13,7 +13,7 @@ typedef HMODULE B3_DYNLIB_HANDLE; - #define B3_DYNLIB_OPEN LoadLibrary + #define B3_DYNLIB_OPEN LoadLibraryA #define B3_DYNLIB_CLOSE FreeLibrary #define B3_DYNLIB_IMPORT GetProcAddress #else