BakkesModSDK
BakkesModSDK copied to clipboard
"LoadLibrary returned NULL.[...] Error code: 193" when load plugin in game
after creating the plugin skeleton and configuring the project as indicated in the READme I just try to load it in game and I get this error "LoadLibrary returned NULL. Make sure the DLL is 64 bit and has access to all included libraries. Error code 193"
- Make sure you're compiling for release, x64 bit in visual studio.
- Make sure your runtime library is set to "Multi-threaded (/MT)" under Project Properties -> C/C++ -> Code Generation.
- Double check you are using "pluginsdk.lib" and NOT "bakkesmod.lib" in your plugin header file (or in your project property includes, if you're doing it that way). The "bakkesmod.lib" library has been deprecated for some time now.
99% of the time it's the last line with this error, but still check to make sure you're compiling for /MT.
Hey, I know it's a pretty old question but I currently have the same problem. I figured out that the external library libcurl is causing this problem for me. If I try to call a function of the library it'll throw this error. I still don't know why this happens because the plugin has access to the library.