I have a statically linked library that uses some functions from the dll that I need to delay loading. Therefore, in my executable properties, I added this dll to the Linker/Input/Delay Loaded DLLs . I cannot add this parameter in lib itself, since it does not have Linker properties Linker (because it is a static library)
So, whenever I use this library in another executable tool, I need to add the download load option again and again, which I want to avoid. I know there used to be a pragma for this
#pragma comment(linker, "/DELAYLOAD:mydll.dll")
However, this does not work for me because he says
warning LNK4229: invalid directive '/DELAYLOAD:mydll.dll' encountered; ignored
Is there any way besides LoadLibrary?
c ++ visual-studio
spiritwolfform
source share