Title:
Runtime_Dynamic_DLL_Loading Download
Description: 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).
- [opengl_mfc] - Based on VC++ Under OpenGL MFC developme
File list (Check if you may need any files):
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