Hi guys I'm writing a program for Microsoft's Kinect. I borrowed some code from one of the samples provided in Microsoft's SDK and now I'm getting an error which I can't resolve.
: cannot convert parameter 1 from 'WCHAR [260]' to 'wchar_t'
There is no context in which this conversion is possible
I've also included the header file "winnt.h" which I'm not sure is necessary or not but when I did a lookup on the declaration of WCHAR visual studio said the typedef was done there. Honestly, im not all that familiar with these data types and am looking for a quick fix since this a very small portion of my code but if thats not an option I'm willing to do what it takes.
That seems very ood, given that RESULT GetScreenshotFileName(wchar_t *screenshotName, UINT screenshotNameSize)
clearly indicates it should be trying to transform it into wchar_t*
If you had GetScreenshotFileName(screenshotPath[0], _countof(screenshotPath));
that would be handing it a wchar_t, but what it would do with a single character in place of a en entire pathname I've no idea.
Is RESULT GetScreenshotFileName(wchar_t *screenshotName, UINT screenshotNameSize) definitely the right function prototype?