I use LoadLibrary to dynamically load a library in my application. In Visual Studio, I can set different build configurations: x86 or x64 / Debug or Release. I can also build a library from source in different configurations but how to implement loading library in my application which chooses appropriate target based on build configuration which is set in Visual Studio, for example: when I build x64-Release application LoadLibrary should also load x64-Release library.
my_dll_x64_debug.dll,my_dll_x64_release.dlletc. Or if you have many DLLs for each ABI use folders named for the ABI and put the corresponding set of DLLs in each folder._WIN32and_WIN64..._DEBUGand_WIN64