Introduction - If you have any usage issues, please Google them yourself
The code snippet shown in this article is used to delay load a DLL, i.e., DLL is implicitly linked but not actually loaded until your code attempts to reference a symbol contained within the DLL. If your application uses several DLLs, its initialization time might be slow because the loader maps all of the required DLLs into the process address space and there is every possibility that even a single function from one of these DLLs is not called, so a better way for a loading a DLL which is rarely used is to delay load, it i.e., load it when required instead of loading initially. This improves the start up time. Sounds great. Now, we will actually try to delay load a DLL, and analyze its advantages and disadvantages, so all set
Packet : 25811236delayload_source.zip filelist
DelayLoad_source/
DelayLoad_source/DealyLoad_source/
DelayLoad_source/DealyLoad_source/bin/
DelayLoad_source/DealyLoad_source/bin/Dll.dll
DelayLoad_source/DealyLoad_source/bin/Dll.exp
DelayLoad_source/DealyLoad_source/bin/Dll.lib
DelayLoad_source/DealyLoad_source/bin/TestExe.exe
DelayLoad_source/DealyLoad_source/Dll/
DelayLoad_source/DealyLoad_source/Dll/Dll.cpp
DelayLoad_source/DealyLoad_source/Dll/Dll.def
DelayLoad_source/DealyLoad_source/Dll/Dll.dsp
DelayLoad_source/DealyLoad_source/Dll/Dll.dsw
DelayLoad_source/DealyLoad_source/Dll/Dll.h
DelayLoad_source/DealyLoad_source/Dll/ReadMe.txt
DelayLoad_source/DealyLoad_source/Dll/StdAfx.cpp
DelayLoad_source/DealyLoad_source/Dll/StdAfx.h
DelayLoad_source/DealyLoad_source/TestExe/
DelayLoad_source/DealyLoad_source/TestExe/ReadMe.txt
DelayLoad_source/DealyLoad_source/TestExe/StdAfx.cpp
DelayLoad_source/DealyLoad_source/TestExe/StdAfx.h
DelayLoad_source/DealyLoad_source/TestExe/TestExe.cpp
DelayLoad_source/DealyLoad_source/TestExe/TestExe.dsp
DelayLoad_source/DealyLoad_source/TestExe/TestExe.dsw