• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is dll?

 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic