1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confusions related to Dll.

Discussion in 'C' started by nnhamane, Nov 25, 2008.

  1. nnhamane

    nnhamane New Member

    Joined:
    Jun 23, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    :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..
     
    Last edited by a moderator: Nov 25, 2008
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    The concept is same as Function where you would like the sharing of the functions across applications.
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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".
     

Share This Page