文件名称:DelayLoad_source
- 所属分类:
- 状态条
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 80kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DelayLoad_source
................\DealyLoad_source
................\................\bin
................\................\...\Dll.dll
................\................\...\Dll.exp
................\................\...\Dll.lib
................\................\...\TestExe.exe
................\................\Dll
................\................\...\Dll.cpp
................\................\...\Dll.def
................\................\...\Dll.dsp
................\................\...\Dll.dsw
................\................\...\Dll.h
................\................\...\ReadMe.txt
................\................\...\StdAfx.cpp
................\................\...\StdAfx.h
................\................\TestExe
................\................\.......\ReadMe.txt
................\................\.......\StdAfx.cpp
................\................\.......\StdAfx.h
................\................\.......\TestExe.cpp
................\................\.......\TestExe.dsp
................\................\.......\TestExe.dsw
................\DealyLoad_source
................\................\bin
................\................\...\Dll.dll
................\................\...\Dll.exp
................\................\...\Dll.lib
................\................\...\TestExe.exe
................\................\Dll
................\................\...\Dll.cpp
................\................\...\Dll.def
................\................\...\Dll.dsp
................\................\...\Dll.dsw
................\................\...\Dll.h
................\................\...\ReadMe.txt
................\................\...\StdAfx.cpp
................\................\...\StdAfx.h
................\................\TestExe
................\................\.......\ReadMe.txt
................\................\.......\StdAfx.cpp
................\................\.......\StdAfx.h
................\................\.......\TestExe.cpp
................\................\.......\TestExe.dsp
................\................\.......\TestExe.dsw