I have a 3rd party library containing a .lib file and a dll. My
understanding is that the .lib is used at link time and the dll at run
time, is this correct?

I know how to add the .lib to my project, but how does the application
know it needs the dll? And where do I put it in the directory structure?

Thanks

Re: adding dll's and lib's by David

David
Tue Dec 16 09:07:14 CST 2003

>I have a 3rd party library containing a .lib file and a dll. My
>understanding is that the .lib is used at link time and the dll at run
>time, is this correct?

Yes.

>I know how to add the .lib to my project, but how does the application
>know it needs the dll? And where do I put it in the directory structure?

You normally put the DLL in the same directory as your EXE - or
somewhere it can be accessed - see the documentation on LoadLibrary
for details.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Re: adding dll's and lib's by a

a
Tue Dec 16 12:28:45 CST 2003

Hi

Yes the Lib is linked and not required to be bundled with the final release.
Dlls are required at run time but depending on what type of Dll you have,
it can go in a number of destination folders.
Typicaly a COM Dll or a Dll that exports symbols and that can be used by
a number of applications, should be in the system directory. Otherwise if
you
know the dll will only be used by your application , then the main
application's
folder should be fine.

cya