I have an array of bytes that has data loaded into it. I want to get a wchar_t pointer to the data loaded as unicode characters so I can use unicode string functions. I'm not sure how to do it.
unsigned char n[1000];
// fill array with numeric and unicode text data
wchar_t *test;
test = &n[100]; // this doesn't work
test = &(wchar_t)n[100]; // this doesn't work
test = &((wchar_t)n[100]); // this doesn't work
test = (wchar_t)&n[100]; // this doesn't work
What will work?