#pragma comment(lib for delay loading of dlls
I need to us a DLL that controls a hardware device, if the device isn't connected the DLL brings down the program with it. The DLL executes this code on attachment.
This problems can be solved by dynamically loading the DLL.
MSVC supports delay loading DLLs via `/delayload:toxic_sdk.dll`
To avoid extensive build targets, I use pragmas to control the included libraries, sadly there isn't a similar mechanism for loading DLLs.
Can we have something like?
#pragma comment(lib_dyn, "toxic_sdk.lib")