获取错误使用Skype4ComLib错误、Skype4ComLib

2023-09-06 18:26:09 作者:雨祭

你好我使用Skype4ComLib检索Skype联系人,但我得到的错误:

Hi I am using Skype4ComLib to retrieve Skype contacts but I am getting error:

检索COM类工厂组件具有CLSID   {830690FC-BF2F-47A6-AC2D-330BCB402664}失败由于以下   错误:80040154没有注册类(从HRESULT异常:   0x80040154的(REGDB_E_CLASSNOTREG))。

Retrieving the COM class factory for component with CLSID {830690FC-BF2F-47A6-AC2D-330BCB402664} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Skype的安装我的机器上。

Skype is installed on my machine.

任何想法?

推荐答案

我最近经历了完全相同的错误信息,它只是作为我的.NET项目被编为任何CPU在默认情况下的结果。

I recently experienced the exact same error message, and it was simply as a result of my .NET project being compiled for "Any CPU" by default.

该SKYPE4COM库是一个32位二进制只,正因为如此,你应该确保该项目,你打算使用它是专为86的架构进行编译。

The SKYPE4COM library is a 32bit only binary, and as such you should make sure that the project you intend to use it with is specifically compiled for "x86" architecture.

当我这样做,该错误信息只是走了。

As soon as I did this, the error message just went away.

您的项目只需右键单击并选择属性。那么构建标签下,选择86的地方说:平台目标。这个过程可能会与你的Visual Studio版本的变化,但正确的,因为2012年的版本。

Simply right-click on your project and select "properties". Then under the "Build" tab, choose "x86" where it says "platform target". This process may vary with your version of Visual Studio, but is correct as of version 2012.