文件名称:LoadDllFromMem
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2015-01-13
- 文件大小:
- 87kb
- 下载次数:
- 0次
- 提 供 者:
- kika****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个从内存(资源形式)直接加载并调用DLL中函数的例子。
xDll工程只是一个测试用的dll,附上代码,编译出的xDll.dll直接放在testLoadDll工程目录下
testLoadDll是实际测试代码,从资源直接加载Dll并调用其导出函数
加载用MemoryLoadLibrary()
查找导出函数用MemoryGetProcAddress()
释放时用MemoryFreeLibrary
详情请见代码。-This is an example of a loaded directly memory (resources in the form) and call the DLL function.
xDll just a test project with the dll, attach code, compile the xDll.dll directly on testLoadDll project directory
testLoadDll is the actual test code, Dll loaded directly the resource and call its export function
Loaded with MemoryLoadLibrary ()
Find the export function with MemoryGetProcAddress ()
When released by MemoryFreeLibrary
For details, see the code.
xDll工程只是一个测试用的dll,附上代码,编译出的xDll.dll直接放在testLoadDll工程目录下
testLoadDll是实际测试代码,从资源直接加载Dll并调用其导出函数
加载用MemoryLoadLibrary()
查找导出函数用MemoryGetProcAddress()
释放时用MemoryFreeLibrary
详情请见代码。-This is an example of a loaded directly memory (resources in the form) and call the DLL function.
xDll just a test project with the dll, attach code, compile the xDll.dll directly on testLoadDll project directory
testLoadDll is the actual test code, Dll loaded directly the resource and call its export function
Loaded with MemoryLoadLibrary ()
Find the export function with MemoryGetProcAddress ()
When released by MemoryFreeLibrary
For details, see the code.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
testLoadDll\MemoryModule.c
...........\MemoryModule.h
...........\Release\testLoadDll.exe
...........\resource.h
...........\testLoadDll.aps
...........\testLoadDll.cpp
...........\testLoadDll.dsp
...........\testLoadDll.dsw
...........\testLoadDll.opt
...........\testLoadDll.rc
...........\xDll.dll
xDll\ReadMe.txt
....\..lease\xDll.dll
....\.......\xDll.lib
....\StdAfx.cpp
....\StdAfx.h
....\xDll.cpp
....\xDll.dsp
....\xDll.dsw
....\xDll.h
....\xDll.opt
说明.txt
testLoadDll\Release
xDll\Release
testLoadDll
xDll