• Welcome to Valhalla Legends Archive.
 

.dll's

Started by MoNksBaNe_Agahnim, December 02, 2003, 05:54 PM

Previous topic - Next topic

MoNksBaNe_Agahnim

What exactly are dll files, such as what do they contain and are used for?

iago

They contain functions that can be called from various programs.  They tend to be distributed with .h files, which allow you to use them.

That's about all I know. :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Zakath

They declare functions as exports. By linking with a completed DLL, provided you know the functions' names, you can declare and use them as if they were defined in one of your source files.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Adron

#3
dll: Dynamic Link Library

dll's and exe's are very similar: They use the same format and both can export and import functions.

Their use however is generally different: A dll is typically loaded into a number of processes - a way of sharing code. Each instance of the dll will in win32 have its own copy of any static/global variables, but all instances will share the code, if it hasn't been moved in memory.

dll files and lib files somewhat fill the same purpose. They both contain functions for you to use, like Zakath and iago said. With a lib file, the functions are copied into your exe at link time. With a dll file, an import table is written into your exe file and the functions are loaded from the dll at the time your exe is executed.