Thursday, July 14, 2011

How to convert from wchar_t* to char* and vice versa?

You can static cast between pointers using double dereferencing...something like *static_cast(wchar_t*), which just changes the point to char and then acts just like a char, but still is of type wchar_t.

No comments:

Post a Comment