Implicit Dynamic Linking or loading: When application or client uses its import table to link the external symbol/functions, it is called implicit linking. In implicit linking application use prototype header and import library to link an external symbol.
Example: Suppose we have a third party math library and add() is a function/interface we are using in our application.
Then the following steps are needed
- include the math.h where add() prototype is there as a import function for compilation,
- include math.lib for linking.
- place math.dll DLL at the path of our application.
Explicit Dynamic Linking/Loading: When application does not link the external symbol by import library rather it loads the DLL at runtime. It does the same mechanism as operating system does during loading of the implicit linked DLL calls.
This is done by using Win32 APIs like:
- LoadLibrary() - loads and links a input library form the DLL path, or current path,
- GetProcAddress() - finds the symbol/function address by its name for a loaded DLL
- FreeLibrary() - unloads the loaded DLL instance
You have viewed 1 page out of 27. Your DLL learning is 0.00% complete. Login to check your learning progress.
Similar topics related to this section
DLL Frequently Asked Questions
Frequently Asked Questions - DLL-files.com
Dependency Walker Frequently Asked Questions (FAQ)
Top 10 DLL Questions !
DLL COM DCOM Interview Questions and Answers
| #1 webmaster Thu 27 Feb/2014 20:46:10(GMT) || 0 || 0|
We are pleased to inform you that a forum/blog has been incorporated with www.mybestnotes.co.in. You are welcomed to add your comments, requests, codes, solutions and feedback to it. Please login(if already a member) or signup(for free) to avail to this facility.
Your message goes here: