A few things can go wrong ...
x64 vs. x86
You need to make sure that you are using x86 v x64 correctly. The x64 binary will work, for example, only in the x64 node version. I see that you are directly linking to some x64 libraries, you probably need to conditionally reference the libraries you need based on the architecture you are targeting. And then make sure you get the correct version of the electron.
Dependent dlls
Make sure your dll files are in the right places. Basically, they should be in the same directory or next to exe, which is trying to load the DLL.
It looks like you are using windows, so try using this tool to open your DLL and see what its depen.exe dependencies are
It should be noted that when you rebuild using node -gyp, the dll will only open in electronic mode now, you need to do some magic to make it also load into the node from the command line without further recompilation.
How are you actually trying to load a DLL?
Version
You must have the exact correct versions of node, electronic, and node -gyp. Triple check everything.
I can elaborate on any of these topics if you need detailed information.
source share