无法加载 DLL 文件 [英] can not load a DLL file

查看:45
本文介绍了无法加载 DLL 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次尝试加载 DLL (COM) 时都会出现以下错误:

Every time I try to load DLL (COM) I get the following error:

LDR:LdrpWalkImportDescriptor() 失败探查其清单,ntstatus 0xc0150002

LDR: LdrpWalkImportDescriptor() failed to probe for its manifest, ntstatus 0xc0150002

我搜索了很多,但一无所获.请我真的相信这个网站的专家,我希望得到这个问题的解决方案.

I searched a lot but found nothing. Please I really believe in this site experts and I hope to get a solution to this problem.

我知道问题来自清单文件,但我真的不知道它是什么以及如何解决这个问题

I know that the problem is from manifest file but I really don't know what is it and how to fix this

我使用 VS2010 C++ 和 LoadLibrary

I use VS2010 C++ and LoadLibrary

推荐答案

这是ntstatus.h中的错误代码说明:

This is the description of the error code from ntstatus.h:

//
// MessageId: STATUS_SXS_CANT_GEN_ACTCTX
//
// MessageText:
//
// Windows was not able to process the application binding information.
// Please refer to your System Event Log for further information.
//
#define STATUS_SXS_CANT_GEN_ACTCTX       ((NTSTATUS)0xC0150002L)

查看 Windows 事件日志以获取更多信息.一个很常见的错误是 DLL 需要的 CRT 运行时库没有安装在您的机器上.如果这没有帮助,请发布您在问题中看到的内容.或者联系 COM 组件供应商或作者以获得支持,最好的方法.

Look in the Windows event log for further information. A very common mishap is that the CRT runtime library that the DLL needs is not installed in your machine. Post what you see there in your question if that doesn't help. Or contact the COM component vendor or author for support, best way.

这篇关于无法加载 DLL 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆