Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/147.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
创建包含所有依赖项的独立DLL 我正在研究VS9中的C++项目,它引用了许多头文件、.DLL和.LIB文件。p>_C++_Visual Studio_Visual C++ 2008 - Fatal编程技术网

创建包含所有依赖项的独立DLL 我正在研究VS9中的C++项目,它引用了许多头文件、.DLL和.LIB文件。p>

创建包含所有依赖项的独立DLL 我正在研究VS9中的C++项目,它引用了许多头文件、.DLL和.LIB文件。p>,c++,visual-studio,visual-c++-2008,C++,Visual Studio,Visual C++ 2008,我想将其输出为包含所有依赖项的独立DLL,这样我就可以使用LoadLibrary()将其拉入 这可能吗?如果可能,我如何在VS9中实现 我已创建DLL,但通过Dependes.exe运行该DLL时会出现错误: Error: At least one required implicit or forwarded dependency was not found. Warning: At least one delay-load dependency module was not found. Wa

我想将其输出为包含所有依赖项的独立DLL,这样我就可以使用LoadLibrary()将其拉入

这可能吗?如果可能,我如何在VS9中实现

我已创建DLL,但通过Dependes.exe运行该DLL时会出现错误:

Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

谢谢

如果其他DLL恰好是CRT,使用编译将消除依赖性。如果您正在处理一些其他DLL,您可以将它们作为资源嵌入,然后在运行时加载它们。我自己从来没有这样做过,但你可以通过阅读来找到自己的方法:


你真正的问题是DependencyWalker,它跟不上时代的步伐。