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

Qix - MONICA WAS MISTREATED
- 14,451
- 16
- 82
- 145
-
Don't link with the import library? – Some programmer dude Oct 02 '12 at 06:53
-
Linking is necessary, or you get reference errors. – Qix - MONICA WAS MISTREATED Oct 02 '12 at 06:54
1 Answers
1
Maybe you need this:
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