gpt4 book ai didi

c# - COM异常 : 80040154

转载 作者:太空宇宙 更新时间:2023-11-03 16:28:11 25 4
gpt4 key购买 nike

我有一些用 C++ 编写的 COM .dll,我已通过 regsvr32 注册。有问题的机器是 32 位机器,.dll 本身也是 32 位的。

在 C# Visual Studio 中,我添加了对 COM 应用程序的引用,并尝试创建一个已定义的组件类。但是,当我尝试运行时收到以下错误消息。

Creating an instance of the COM component with CLSID {125F6114-3444-41B0-A5CC-7333EAA8020A} from the IClassFactory failed due to the following error: 80040154.

我在注册表中查找该 CLSID 并在所有正确的位置找到它。连 Visual Studio 都能找到,我怎么会创建 COM 组件失败呢?

最佳答案

我遇到了同样的问题,但在我尝试以管理员身份运行 Visual Studio 之前没有任何效果。

关于c# - COM异常 : 80040154,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11800828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com