Solved

The development of the Dynamic Linked Libraries

Posted on 1999-01-11
6
219 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

740 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