Confusions related to Dll.

nnhamane's Avatar, Join Date: Jun 2006
Light Poster
Can anyone tell me what is the main purpose of Dll? As we can get the data from Dll, can we put the data in Dll? I am not talking about code, talking about single Dll. If you know about Dll then please share your knowledge..

Last edited by shabbir; 25Nov2008 at 12:41.. Reason: Confine links to signatures
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The concept is same as Function where you would like the sharing of the functions across applications.
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You might write a DLL if your main product is a library of functions rather than an executable; you would ship a library and a bunch of header files, then people would link your library with their executable.

Another use of DLLs is to reduce executable sizes; if you have a number of executables that share the same group of functions then you can put those functions in a DLL instead of duplicating them across all the executables.

Yes, you could put data in a DLL, but it seems an odd way of doing data storage. This is probably one of those things that you do if you know that you need to do it that way and that that is the only way to achieve what you want to do, so if your question is "why would I want to store data in a DLL" then the answer is most likely "you don't".