Use GetModuleHandleA instead of LoadLibrary for dlls imported by the spec file.
Attach a file by drag & drop or click to upload