文件名称:Runtime_Dynamic_DLL_Loading
介绍说明--下载内容均来自于网络,请自行研究使用
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
...\bin
...\Dll.cbp
...\Dll.layout
...\main.cpp
...\main.h
...\obj
DynDll
......\bin
......\DynDll.cbp
......\DynDll.depend
......\DynDll.layout
......\main.c
......\obj
HelloDll.dll
DynDll.exe
libHelloDll.def
...\bin
...\Dll.cbp
...\Dll.layout
...\main.cpp
...\main.h
...\obj
DynDll
......\bin
......\DynDll.cbp
......\DynDll.depend
......\DynDll.layout
......\main.c
......\obj
HelloDll.dll
DynDll.exe
libHelloDll.def