Here are my codes:
CLNUIMotor mot;
CLNUICamera kinect_camera;
short position,x = 100,y = 100,z = 20;
BYTE value;
bool result;
PCHAR kinect_s;
int device_num;
PBYTE pData;
position =0;
pData = (PBYTE) malloc(921600);
kinect_s = (PCHAR) malloc(sizeof(char)*12);
device_num= GetNUIDeviceCount();
kinect_s = GetNUIDeviceSerial(0);
mot = CreateNUIMotor(kinect_s);
result = SetNUIMotorPosition(mot, position);
result = GetNUIMotorAccelerometer(mot, x, y, z);
result = SetNUIMotorLED(mot, 1);
kinect_camera = CreateNUICamera(kinect_s);
result = StartNUICamera(kinect_camera);
result = GetNUICameraColorFrameRGB24(kinect_camera, pData, 2000);
I always get the false message when I call GetNUICameraColorFrameRGB24(kinect_camera, pData, 2000);.
Anyone knows how to solve it?? My system is Vista 64, VS 2010.
Thanks!