Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Confusions related to Dll. (http://www.go4expert.com/forums/confusions-related-dll-t15241/)

nnhamane 25Nov2008 09:49

Confusions related to Dll.
 
:confused: 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..

shabbir 25Nov2008 12:42

Re: Confusions related to Dll.
 
The concept is same as Function where you would like the sharing of the functions across applications.

xpi0t0s 25Nov2008 14:04

Re: Confusions related to Dll.
 
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".


All times are GMT +5.5. The time now is 01:34.