LoadDllFromMem
所属分类:Windows编程
开发工具:Visual C++
文件大小:87KB
下载次数:94
上传日期:2015-01-13 22:26:31
上 传 者:
kikaylee
说明: 这是一个从内存(资源形式)直接加载并调用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.)
文件列表:
testLoadDll\MemoryModule.c (13855, 2010-11-07)
testLoadDll\MemoryModule.h (1273, 2010-11-07)
testLoadDll\Release\testLoadDll.exe (90112, 2010-11-07)
testLoadDll\resource.h (505, 2010-11-07)
testLoadDll\testLoadDll.aps (72432, 2010-11-07)
testLoadDll\testLoadDll.cpp (1402, 2010-11-07)
testLoadDll\testLoadDll.dsp (3999, 2010-11-07)
testLoadDll\testLoadDll.dsw (528, 2010-11-07)
testLoadDll\testLoadDll.opt (53760, 2010-11-07)
testLoadDll\testLoadDll.rc (1608, 2010-11-07)
testLoadDll\xDll.dll (40960, 2010-11-07)
xDll\Release\xDll.dll (40960, 2010-11-07)
xDll\Release\xDll.lib (1942, 2010-11-07)
xDll\StdAfx.cpp (291, 2010-11-07)
xDll\StdAfx.h (802, 2010-11-07)
xDll\xDll.cpp (690, 2010-11-07)
xDll\xDll.dsp (4320, 2010-11-07)
xDll\xDll.dsw (514, 2010-11-07)
xDll\xDll.h (707, 2010-11-07)
xDll\xDll.opt (53760, 2010-11-07)
说明.txt (380, 2010-11-07)
testLoadDll\Release (0, 2010-11-07)
xDll\Release (0, 2010-11-07)
testLoadDll (0, 2010-11-07)
xDll (0, 2010-11-07)
========================================================================
DYNAMIC LINK LIBRARY : xDll
========================================================================
AppWizard has created this xDll DLL for you.
This file contains a summary of what you will find in each of the files that
make up your xDll application.
xDll.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
xDll.cpp
This is the main DLL source file.
xDll.h
This file contains your DLL exports.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named xDll.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: