引用异常kinectbackgroundremoval180_32.dll有效的com对象 [英] Reference exception kinectbackgroundremoval180_32.dll valid com object

查看:79
本文介绍了引用异常kinectbackgroundremoval180_32.dll有效的com对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试引用kinect dll时,我收到以下错误: 

When i try to reference a kinect dll i get the following error: 

对...的引用。 .\Microsoft SDKs\Kinect\Developer Toolkit\v1.8.0\Assemblies\KinectBackgroundRemoval180_32.dll

无法添加。请确保该文件是可访问的,并且该文件是有效的程序集或COM组件。

A reference to ..\Microsoft SDKs\Kinect\Developer Toolkit\v1.8.0\Assemblies\KinectBackgroundRemoval180_32.dll
could not be added. Please make sure that the file is accessible and that is is a valid assembly or COM component.

有人知道这个问题的原因吗?

和我如何解决?

Has somebody an idea whats the cause of this problem?
And how do i solve it?

提前致谢

推荐答案

你能提供更多细节吗?您的环境,Visual Studio的版本,您是否安装了1.8的SDK和工具包,以及您的项目目标是什么 - x86,x64或"所有平台"

Can you provide more detail on your environment, version of Visual Studio, do you have the SDK and Toolkit installed for 1.8, and what is your project targeting for an output - x86, x64 or "All Platforms"

As对于程序集,您不要直接引用名称中包含_32 / _64扩展名的.dll。这些用作您的应用程序的可再发行组件。构建应用程序后,运行应用程序时,这些.dll文件必须位于同一文件夹/路径
中。

As for the assembly, you do not directly reference the .dll's that have the _32 / _64 extension in their names. These are used as redistributables with your application. Once you build your application, these .dll files must be in the same folder/path when you run the application.

.Net所需的文件是:

The file you want for .Net is:

C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.8.0\Assemblies\Microsoft.Kinect.Toolkit.BackgroundRemoval.dll

C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.8.0\Assemblies\Microsoft.Kinect.Toolkit.BackgroundRemoval.dll

如果要构建本机c ++应用程序,可以将应用程序链接到.lib,并将相应的_32 / _64 .dll包含在应用程序的目标平台中。

If you are building a native c++ application, you would link your app to the .lib and include the respective _32/_64 .dll with the targeted platform of your application.

这篇关于引用异常kinectbackgroundremoval180_32.dll有效的com对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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