The ASUnicode typedef is incompatible with wchar_t but seems to be compatible as far as I can tell. I'm only currently dealing with ASCII-compatible characters but certainly don't want to cause any headaches down the road.
There are only two posts here that have ASUnicode in them and both are just incidental in the presentation of source code. Both posts indicate a similar understanding to mine. PIUActionUtilities.cpp in the samples also implies that they are compatible given the use of casts in that file to LPCWSTR.
So am I fine just using wchar_t throughout my code and casting to ASUnicode when I need to (e.g. when calling the JS scripting interface)? And I can go the other way without issue as well, so all of my returned data can just be dealt with as wchar_t pointers?
Thanks.