How to access the WindowsPreview namespace?

I am trying to work with kinect 2 in C ++. All the code samples I've seen use the WindowsPreview namespace, but I don't have access to it. I have an SDK (code examples work fine). I linked the Kinect.h and kinect20.lib files correctly. Can anybody help me?

example of the error

-1
source share
1 answer

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

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

Rob: API- WindowsPreview.Kinect?
: ()
: API?
: API- Microsoft.Kinect, WindowsPreview , API- WinRT - Windows .

, , WindowsPreview.Kinect , ( Windows) Microsoft.Kinect: enter image description here , , , , .

+1

All Articles