I suggest you ...

#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")

5 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Mikhail Kandel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base