如何访问"WindowsPreview"命名空间? [英] How to access 'WindowsPreview' namespace?

查看:130
本文介绍了如何访问"WindowsPreview"命名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用C ++中的kinect 2.我看到的所有代码示例都使用WindowsPreview命名空间,但是我似乎无法访问它.我有SDK(代码示例运行良好).我已正确链接到Kinect.h和kinect20.lib文件.有人可以帮我吗?

I am trying to work with a kinect 2 in c++. All the code samples I have seen use the WindowsPreview namespace but I don't seem to have access to it. I have the SDK (code samples run fine). I have correctly linked to the Kinect.h and kinect20.lib files. Can someone help me out?

推荐答案

在Windows Store中使用Kinect API时,WindowsPreview :: Kinect是名称空间,其他API使用Microsoft :: Kinect.

WindowsPreview::Kinect is the namespace when using the Kinect API for the Windows Store, the other APIs use Microsoft::Kinect.

在其中一个视频中提到了名称空间: Kinect数据源和编程模型(从20:00开始)

Found a mention of the namespaces in one of the videos: Kinect Data Sources and Programming Model (starts at 20:00)

Rob:在商店API中,名称空间是WindowsPreview.Kinect吗?
杰西:(是)
Rob:您能谈谈其他API吗?
杰西:在其他API中,名称空间是Microsoft.Kinect,WindowsPreview名称空间表示我们正在预览WinRT API,以进一步将它们包含在某种形式的Windows中.

Rob: In the store APIs, the namespace is WindowsPreview.Kinect?
Jesse: (Yes)
Rob: Can you talk about the other APIs?
Jesse: In the other APIs, the namespace is Microsoft.Kinect, the WindowsPreview namespace is indicating that we are previewing the WinRT APIs for further inclusion in some form of Windows down the road.

它似乎在文档,但在我的代码中(不是针对Windows商店),它显示为Microsoft.Kinect: 我认为,可以更清楚地记录下来,但是可能我只是在错误的地方寻找.

It appears to be listed as WindowsPreview.Kinect in the documentation but in my code (not targetting the Windows store) it shows up as Microsoft.Kinect: In my opinion, this is something that could be more clearly documented, but it is possible I'm just not looking in the right places.

这篇关于如何访问"WindowsPreview"命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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