Take the 2-minute tour ×

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

share|improve this question
Don't link with the import library? –  Joachim Pileborg Oct 2 '12 at 6:53
Linking is necessary, or you get reference errors. –  Qix Oct 2 '12 at 6:54

1 Answer 1

up vote 1 down vote accepted

Maybe you need this:



share|improve this answer
Yep found that after some searching. However, This does not work for exported classes. Still marking it as the answer, as it answered my question! –  Qix Oct 2 '12 at 7:04
You are welcome. –  Kirill Kobelev Oct 2 '12 at 7:49

Your Answer


