and I got error: Error 1 error C2664: 'strcpy' : cannot convert parameter 2 from 'const wchar_t *' to 'const char *'
So this tells me that the result of the name() is wide char string. It seems non sense to me. I just want to copy the string to check what it the name of the item. Any explanation why this happen and how to correct it?
Note:
While debuging it really shows the string is type const wchar_t*
but I thought c string is just char array. That's confusing. How to convert this to copy to char array?
I see, so it seems the return type of this function to be mistake. That type does not make any sense to return wide characters, when the function should return c string...
On some places in program which source code I study, there are things like this: