如何访问 'WindowsPreview' 命名空间?

How to access 'WindowsPreview' namespace?

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

WindowsPreview::Kinect 是Windows Store 使用Kinect API 时的命名空间,其他API 使用Microsoft::Kinect。

在其中一个视频中发现了对命名空间的提及:Kinect Data Sources and Programming Model(从 20:00 开始)

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.

它在 documentation 中似乎被列为 WindowsPreview.Kinect 但在我的代码中(不针对 Windows 商店)它显示为 Microsoft.Kinect: 在我看来,这是可以更清楚地记录下来的东西,但有可能我只是没有找对地方。