My background is C# but I have to maintain some legacy (MS) C++. In that codebase I stumpled across:
#pragma comment(lib, "OtherLib700.lib")
If a program has this pragma it will look for the library
OtherLib700.lib. If that is an import library when the program is loaded windows will search for
OtherLib700.dll in the path. It will not try to look for
OtherLib900.dll during execution so it must be finding your
dll in a different folder. This assumes that
OtherLib700.lib is an import library and not a static library. If OtherLib700 is a static library then that is all it needs.