First time here? Check out the FAQ!
answered 2014-02-10 10:19:23 -0600
Basically the openni sample which is included in the C++ samples does this all for you. Go take a look at it and try to get it compiled.