Solved

The development of the Dynamic Linked Libraries

Posted on 1999-01-11
6
209 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
  • 4
  • 2
6 Comments
 

Author Comment

by:ho_cm
Comment Utility
Edited text of question
0
 
LVL 11

Accepted Solution

by:
alexo earned 100 total points
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 11

Expert Comment

by:alexo
Comment Utility
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
Comment Utility
How does threads actually function?
0
 
LVL 11

Expert Comment

by:alexo
Comment Utility
>> 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now