I am trying to get familiar with the Kinect 2.0 SDK in c++ in order to create my own program. However, I am getting stuck with understanding some of the code. First of all, as I tried to trace back different structure declarations, I found that all of the functions are virtual and I cannot find where they are actually defined. For example, If you are in visual studio, and click on 'IBody' and open declaration, it brings you to an interface where everything is virtual. How can I figure out where everything is actually defined?
I tried tracing back through other functions, and I eventually got stuck on "GetDefaultKinectSensor". The definition for this function is
HRESULT WINAPI GetDefaultKinectSensor(_COM_Outptr_ IKinectSensor** defaultKinectSensor);
How is this a function declaration? Could anyone explain this to me?
I understand the basics of C++ but this is new territory for me.
Thanks!
It is a function that has the following signature:
named -
GetDefaultKinectSensor
returns -
HRESULT
calling convention -
WINAPI
argument annotation -
_COM_Outptr_
argument type -
IKinectSensor**
Note that the
_COM_Outptr_
annotation has the following description:The bare function signature would be
Perhaps the calling convention and argument annotation are throwing you off a bit.