Alex Rivera | Logout

What exactly is a PWSTR and why use this naming compared to char*, std::string, or CString in C++?

Asked 2010-01-19T20:18:11.983
16

In various c++ code you often see different usage of strings: PWSTR, char*, std::string, CString, etc ...

When is the best time to use PWSTR as compared to any other string type?

Edit
Report

1 Answer

0

Take a look at the file WinNT.h in the Windows SDK - you'll see that PWSTR is a typedef for WCHAR*. It is not a macro.

answered 2010-01-19T20:53:38.487

Your Answer