0

How would I prevent an import lib from loading the DLL it refers to at runtime until I call something like, say, LoadLibrary?

Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145

1 Answers1

1

Maybe you need this:

http://www.west-wind.com/weblog/posts/2007/Dec/02/Delay-Loading-a-DLL-with-a-Linker-Switch-in-Visual-Studio

http://www.codeproject.com/Articles/273419/Dynamic-Libraries-with-Delayed-Function-Loading

Kirill Kobelev
  • 10,252
  • 6
  • 30
  • 51
  • Yep found that after some searching. However, [**This does not work for exported classes**](http://stackoverflow.com/questions/5232912/how-to-use-delay-loading-with-a-dll-that-exports-c-classes). Still marking it as the answer, as it answered my question! – Qix - MONICA WAS MISTREATED Oct 02 '12 at 07:04