Thread: Confusions related to Dll.

  1. #1
    Registered User
    Join Date
    Jul 2008

    Question Confusions related to Dll.

    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..

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    The purpose of a DLL is, generally, to allow multiple programs to use the same bits of code or data.

    It is sometimes used for other purposes: Multiple DLL's that provide the same interface functions can be used to allow a program to load a DLL that is suitable for a particular situation, e.g.: We can have a "data-mining interface", which has several different varieties: An Excel spreadsheet reader, a MySQL database reader, a Oracle SQL database reader, a text-file reader. From the applications standpoint, it just needs to know at one point which of these DLL's to load. The rest of the code just says "Give me data that matches X".

    Finally, DLL's are sometimes used to split a large project into smaller components. Say we are building a word processor with spell checking. The spell checker may then be a completely separate component - all the main application needs to know is to ask "is this a correctly spelled word - if not, give me a list of X words that are close".

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DLL generated but related import library is missing?
    By George2 in forum C Programming
    Replies: 0
    Last Post: 08-18-2006, 12:13 AM
  2. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. MFC: Multi-threaded DLL Errors & Related Syntax :: C++
    By kuphryn in forum C++ Programming
    Replies: 3
    Last Post: 02-13-2002, 09:02 AM