wood burning stoves 2.0*
The moose likes Java in General and the fly likes what is dll? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "what is dll?" Watch "what is dll?" New topic
Author

what is dll?

ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
i want to know what is dll? actually i see this file mostly at windows .. so what is usage of dll.. and how to use other dll.. and dll?


if u learn to break the rock .. next day u will be looking to Mountain.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
DLL stands for dynamic link library. They are more of an issue with languages compiled into machine code, like C and C++ than with Java. DLLs basically contain the code for certain functions that are linked (or loaded) dynamically, as opposed to statically.
When you compile a program, you can usually chose whether to link any used libraries statically or dynamically. If you choose static linking, the functions used are copied into the final exe file, thus making it larger. If several programs use the same function, it is copied into each exe file.
Dynamic linking on the other hand, stores the single function in its own file (the dll) which is loaded at run time. This way all programs that use the function can share a single copy, instead of each having their own. This reduces the size of each programs' exe file.
HTH
Layne


Java API Documentation
The Java Tutorial
ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
my english is week .. but i tried to understand .. is that file to control the another function .. like we we a example it at FileChooser ,, this file has loaded the dll of windows .. file chooser....
it is my point of view .. im wrong or right?
next
how to make dll with java compiler and how to use any dll?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
For instance if you want your Java code to invoke some code that is part of a Microsoft product, you would look for the MicroSoft .dll that contains that function and then invoke it using some JNI.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Don't get me started about those stupid light bulbs.
 
subject: what is dll?
 
Similar Threads
Calling a generic DLL
new ActiveXObject & user32.dll
How can I paint a chart in the jsp
Native Call to DLL
JNI and DLL