Forms of DLLs
Whenever you load a DLL in a credit card applicatoin, two types of connecting allow you to call the exported DLL functions. The 2 methods of connecting are load-time powerful linking and run-time linking that is dynamic.
Load-time powerful linking
In load-time dynamic linking, a credit card applicatoin makes explicit telephone calls to exported DLL functions like regional functions. To use load-time dynamic linking, supply a header (.h) file and an import collection (.lib) file when you compile and link the applying. Once you try this, the linker will offer the operational system aided by the information that’s needed is to load the DLL and resolve the exported DLL function places at load time.
Run-time powerful linking
In run-time dynamic linking, a credit card applicatoin calls either the LoadLibrary function or even the LoadLibraryEx function to load the DLL at run time. Following the DLL is effectively packed, you utilize the GetProcAddress function to get the target of this exported DLL function you want to phone. By using run-time dynamic linking, there is no need an import collection file.
The ensuing list defines the application form requirements for when to use load-time dynamic linking as soon as to make use of run-time linking that is dynamic
In the event that initial startup performance of this application is very important, you need to use run-time linking that is dynamic. Continue reading →