创建包含所有依赖项的独立DLL 我正在研究VS9中的C++项目,它引用了许多头文件、.DLL和.LIB文件。p>
我想将其输出为包含所有依赖项的独立DLL,这样我就可以使用LoadLibrary()将其拉入 这可能吗?如果可能,我如何在VS9中实现 我已创建DLL,但通过Dependes.exe运行该DLL时会出现错误:创建包含所有依赖项的独立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
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,您可以将它们作为资源嵌入,然后在运行时加载它们。我自己从来没有这样做过,但你可以通过阅读来找到自己的方法: