[英]Save assembly to disk with C++
I would like to save one of the currently imported assemblies to local disk inside a C++ program. 我想将当前导入的程序集之一保存到C ++程序内的本地磁盘中。 Is it possible to save the assembly if I know the name of it?
如果我知道程序集的名称,是否可以保存该程序集?
//access the assembly by name
HMODULE hAssem = GetModuleHandleA( "name.dll" );
//now somehow save to disk
Use AssemblyBuilder::Save()
to save a dynamic assembly to disk 使用
AssemblyBuilder::Save()
将动态程序集保存到磁盘
Check out code example . 查看代码示例 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.