Apparently using LoadLibrary on a full path doesn't work -- you need to use SetDllDirectory before loading a library.