文件名称:Runtime_Dynamic_DLL_Loading
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:8.18kb
-
已下载:0次
-
提 供 者:
-
相关连接:无
-
下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
This archive contains two Code::Blocks project. The first one is a DLL skeleton. It includes a default DLLMain function (the DLL entry point) that is called when the DLL is loaded in the memory and a sample function HelloDll.
The second project contains a console application that calls LoadLibrary to load the DLL in the virtual address space of the application and GetProcAddreess to get the address of the HelloDll function.
After calling the HelloDll function, the Dll is unloaded using FreeLibrary.
This is an elegant start-up solution for efficient memory utilisation, plugin system or error tolerant software(missing DLL means missing functionality and application crash can be avoided).
The second project contains a console application that calls LoadLibrary to load the DLL in the virtual address space of the application and GetProcAddreess to get the address of the HelloDll function.
After calling the HelloDll function, the Dll is unloaded using FreeLibrary.
This is an elegant start-up solution for efficient memory utilisation, plugin system or error tolerant software(missing DLL means missing functionality and application crash can be avoided).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Dll/
Dll/bin/
Dll/Dll.cbp
Dll/Dll.layout
Dll/main.cpp
Dll/main.h
Dll/obj/
DynDll/
DynDll/bin/
DynDll/DynDll.cbp
DynDll/DynDll.depend
DynDll/DynDll.layout
DynDll/main.c
DynDll/obj/
HelloDll.dll
DynDll.exe
libHelloDll.def
Dll/bin/
Dll/Dll.cbp
Dll/Dll.layout
Dll/main.cpp
Dll/main.h
Dll/obj/
DynDll/
DynDll/bin/
DynDll/DynDll.cbp
DynDll/DynDll.depend
DynDll/DynDll.layout
DynDll/main.c
DynDll/obj/
HelloDll.dll
DynDll.exe
libHelloDll.def