Solved

The development of the Dynamic Linked Libraries

Posted on 1999-01-11
6
226 Views
Last Modified: 2010-04-15
What is the concept of Dynamic Linked Libraries(DLL)? And how does it actually functons? What are the C libraries functions that are supposed to be called during the development of DLL?
0
Comment
Question by:ho_cm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:ho_cm
ID: 1255757
Edited text of question
0
 
LVL 11

Accepted Solution

by:
alexo earned 100 total points
ID: 1255758
A .DLL file that contains one or more functions compiled, linked, and stored separately from the processes that use them. The operating system maps the DLLs into the process's address space when the process is starting up or while it is running. The process then executes functions in the DLL.

More info comming...
0
 
LVL 11

Expert Comment

by:alexo
ID: 1255759
A DLL is, in a way, similar to a LIB.  You can put functions that are used by several programs there.  The difference is: while the functions in a LIB are included in the EXE during the program linkage, the functions in the DLL are loaded during the program execution, thus allowing for smaller EXE files.

A DLL can be loaded at load-time.  That is, when the program is loaded, all the DLLs it needs are loaded with it (unless they were already loaded into memory by another process).

A DLL can also be loaded at run-time.  That is, when the program is executing, it can dynamically load DLLs (using the LoadLibrary() API under windows) and find addresses of functions that it needs (using the GetProcAddress() API under windows).

A DLL has an entry point which is called when the DLL is loaded or unloaded and when threads attach or detach to it (the entry point is usally called DllMain() API under windows).

Of course, OSes other than Windows use different function naming.
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 11

Expert Comment

by:alexo
ID: 1255760
You can read more about Windows DLLs at:
http://premium.microsoft.com/isapi/devonly/prodinfo/msdnprod/msdnlib.idc?theURL=/msdn/library/sdkdoc/winbase/dll_92sh.htm

(The first access of MSDN-online will require a one-time registration process)
0
 

Author Comment

by:ho_cm
ID: 1255761
How does threads actually function?
0
 
LVL 11

Expert Comment

by:alexo
ID: 1255762
>> How does threads actually function?

This is a whole different subject.
Basically, threads are functions that run "in parallel".  The part of the operating system called "scheduler" rapidly switches the CPU between them such that it appears that they are operating concurrently.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question