That library is only an import library (cot a library full of code like old style static libs)...it only contains a stub to allow the linker to find the dll and its member functions.....this info is added to the exe's import table, and the loader then uses it do map the dll into the process and resolve the jumps or calls to the functions..Originally posted by MrWizard
Fordy:
I noticed in your example you link to the lib file and then include the header as "imported" If you took out the DLL stuff wouldn't it be exactly the same? I mean, if you are using DLL's shouldn't you be able to leave out the lib? I thought the old lib's were statically linked and DLL's could fully replace them if needed. A little confused why you used both there.