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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Jul 5, 2011, 6:01 AM
Vilas GitePosted Jul 5, 2011, 5:56 AM
Thanking you for crucial guidance.
-------------------------------------
Ananth prasathPosted Jul 5, 2011, 5:30 AM
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)
Sam HobbsPosted Jul 5, 2011, 4:07 AM
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.
Vilas GitePosted Jul 5, 2011, 1:42 AM
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 HobbsPosted Jul 4, 2011, 3:52 PM
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.
Amit ChoudharyPosted Jul 4, 2011, 4:36 AM
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.
Vilas GitePosted Jul 4, 2011, 3:07 AM
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"!