DLL <--- WTH are they?

This is a discussion on DLL <--- WTH are they? within the Windows Programming forums, part of the Platform Specific Boards category; Ok I'm just getting into Windows programmming and well I'm trying to write a simple app but I fear it ...

  1. #1
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271

    DLL <--- WTH are they?

    Ok I'm just getting into Windows programmming and well I'm trying to write a simple app but I fear it may not be so simple by the time I get to the end. As this is my first time at GUI programming (Save the occasional Flash MX work) I'm having a go at the windows thing.
    What I wish to know and have explained to me are DLL (I know what it stands for) but their purpose and how they function is still beyond me. I'd like it explained by a programmer as opposed to reading tutorial texts. Afraid this is the best way I learn and teach. Thank you for your time
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Hmm, I'll give this one a shot, feel free to barge in if you think I'm talking nonsense.

    Okay, suppose you had a function, we'll call it MyAmazinglyCoolFunc, and you wanted to use that function in all the programs you make. You could declare that function and all it's code in each of your programs' source, but that may make maintenance difficult, as you might have multiple copies of the same thing, so you may only update MyAmazinglyCoolFunc in some of your programs but forget to do it in all of them.

    Putting your function into a DLL effectively modularises it, so you need only update it in the DLL's source, all the programs you make link to that DLL and use that single derfinition of the function, saving space in each of your programs.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    44

    ??

    DLL stands for Direct link library

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266

    Re: DLL <--- WTH are they?

    It stands for Dynamic Link Library actually, but that wasn't the question being asked:-
    Originally posted by WDT
    What I wish to know and have explained to me are DLL (I know what it stands for)...

  5. #5
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    >> DLL stands for Direct link library

    WTF? It stands for dynamic-link library.

  6. #6
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271
    Thanks to all of you ppl who responded (Yes; it's Dynamic Link Library for those of us that didn't know) Just to clarify it's basically a collection of function declarations and definitions?? And it needs to be compiled into the program too?
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  7. #7
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    The code that makes up the functions isn't compiled into the programs, no, just a reference to them. The DLL is compiled code, it contains a table at the start of the file that describes where the code for each function is inside it. All you need is either the .lib file generated at its compilation or the compiler-specific dllimport statement and you can link to it.

  8. #8
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271
    ok so to get this straight. What goes in the DLL file if I were to try and make one? And from what SMurf says the function definitions would then go into a .lib file, 's just if I were to make one I need to know what the standard practice is.
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 08:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 03:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 01:34 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 06:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21