DLL (Dynamic Link Library) ?
What is DLL and Why do we need to use .dll files?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vilas GiteRank #951 · 2.1K reputationPosted Jul 3, 2011, 11:07 PM EDT
DLL stands for : Dynamic Link Library. DLL is a collection of small programs and which is used in Big Application.
for more details in brief with coding please refer
Create and Use of dll : http://msdn.microsoft.com/en-us/library/3707x96z(v=vs.80).aspx
http://searchwinit.techtarget.com/definition/dynamic-link-library
http://support.microsoft.com/kb/815065
----------------------------------------------------------------------------------------------------
If this reply hepls your post…then "MARK AS ANSWER"!
Amit ChoudharyRank #145 · 15.8K reputationPosted Jul 4, 2011, 12:36 AM EDT
The main diff is DLL does not run by itself it needs a running process to load into memory for execution.
A DLL does not have any Main() function.
A DLL is basically a library that we keep separate from the main running application just to load then when required.
A DLL can also contains your resources like images, icon etc.
These are basic ideas for DLL.
Thanks.
Sam HobbsRank #107 · 20.5K reputationPosted Jul 4, 2011, 11:52 AM EDT
Also note that there are very many types of DLLs. It is often confusing to use the term DLL since that does not make it clear what type of DLL it is. For C# a "Class Library" project creates a DLL and if you have a DLL that is a class library then it is much better to call it a class library instead of DLL. Also, most COM objects exist in DLLs (I think they can also exist in EXE files) and it is better to call them COM objects instead of DLL. Note that most of the Windows APIs are DLLs.
Vilas GiteRank #951 · 2.1K reputationPosted Jul 4, 2011, 9:42 PM EDT
Hi Sam Sir,
I had read information about DLL from site : http://searchwinit.techtarget.com/definition/dynamic-link-library that DLL is collection of small programs and its used in application when its required.
Also I read about from site : how to dll files used in program : http://msdn.microsoft.com/en-us/library/3707x96z(v=vs.80).aspx (in example : Add.cs and Multi.cs are used in Testcode.cs)
Sam Sir, I am not misleading here….i am here for learn more by experts and learn by problem (fourms)
----------------------------------------------------------------------------------------------------
If this reply hepls your post…then "MARK AS ANSWER"!
Sam HobbsRank #107 · 20.5K reputationPosted Jul 5, 2011, 12:07 AM EDT
Based on that one page in the searchwinit.techtarget.com web site, my impression is that it is not the best site to rely on. That one article also says that a DLL is not loaded into memory unless the main program actually uses it, but I think that is not something different between a Dll and an exe file. Portions of exe files are also not loaded unless they are actually used so the article needs to explain more and include the part about exe files not being loaded fully or it should just not say that about DLL files.
So I will get a little advanced here. The following will probably not be understood by anyone unfamiliar with Windows and if you don't understand then you can ignore this if you want.
An exe file gets mapped into its process's virtual memory address space in the same manner that a file can be mapped into a process's address space. The virtual memory pages are not brought into real memory unless the memory is accessed, which results in a page fault. The page fault results in a page worth of data being read into real memory. In this manner, large resources such as images can be included in a exe or DLL file but never read into memory unless they are actually used. I am not sure of the details of how it is done and I am sure it is done more efficiently than I make it sound.
Ananth prasath24 reputationPosted Jul 5, 2011, 1:30 AM EDT
Hi
Steps to perform:
Now, all services you selected for use in you project are available!
With Best Regards
Natarajan R (UI Designer)
KAPSYSTEM (www.kapsystem.com)
Vilas GiteRank #951 · 2.1K reputationPosted Jul 5, 2011, 1:56 AM EDT
Thanking you for crucial guidance.
-------------------------------------
Sam HobbsRank #107 · 20.5K reputationPosted Jul 5, 2011, 2:01 AM EDT