类没有注册的错误 [英] Class not registered Error

查看:276
本文介绍了类没有注册的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行从Visual Studio 2012在64位计算机的应用程序,将显示以下错误消息:

Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message:

检索COM类工厂具有CLSID组件{F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B}失败,原因是以下错误:未注册80040154类(从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))

Retrieving the COM class factory for component with CLSID {F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

我正在使用的VisualStudio发明packandgo dll库。

I am using Inventor packandgo dll library in visualstudio.

任何人都知道什么是错误?

Anyone know what is the error?

推荐答案

一些地方在你使用的是code,有打电话给Win32 API的,的 CoCreateInstance的,动态加载DLL并从中实例化一个对象。

Some where in the code you are using, there call to the Win32 API, CoCreateInstance, to dynamically load a DLL and instantiate an object from it.

组件ID和DLL,它能够实例化对象之间的映射通常见于HEKY_CLASSES_ROOT \ CLSID在注册表中。为了进一步讨论这个问题是解释了很多有关的 COM在Windows 。但是错误指示COM GUID是不是present在注册表中。

The mapping between the component ID and the DLL that is capable of instantiating that object is usually found in HEKY_CLASSES_ROOT\CLSID in the registry. To discuss this further would be to explain a lot about COM in Windows. But the error indicates that the COM guid is not present in the registry.

我不知道很多关于什么PackAndGo DLL是(欧特克成分),但我怀疑你只需要安装的组件或软件包它来通过指定安装有该DLL和相应的COM你想运行在您的code在您的计算机上的注册表项。 (即去运行setup.exe本产品)。

I don't much about what the PackAndGo DLL is (an Autodesk component), but I suspect you simply need to "install" that component or the software package it came with through the designated installer to have that DLL and appropriate COM registry keys on your computer you are trying to run your code on. (i.e. go run setup.exe for this product).

在换句话说,我认为你需要这台计算机上安装打包,而不是仅仅将DLL复制到目标机器。

In other words, I think you need to install "Pack and Go" on this computer instead of just copying the DLL to the target machine.

此外,还要确保你决定建立自己的code适合作为32位与64位取决于其建立包风味(32位或64位),然后转到你安装。

Also, make sure you decide to build your code appropriate as 32-bit vs. 64-bit depending on the which build flavor (32 or 64 bit) of Pack And Go you install.

这篇关于类没有注册的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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