Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

The development of the Dynamic Linked Libraries

Posted on 1999-01-11
6
Medium Priority
?
229 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 300 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files 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.

715 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