First of all, what is it exactly? I guess it is a pointer (LPC means long pointer constant), but what does \"W\" mean? Is it a specific pointer to a string or a pointer to a
LPCWSTR
stands for "Long Pointer to Constant Wide String". The W stands for Wide and means that the string is stored in a 2 byte character vs. the normal char
. Common for any C/C++ code that has to deal with non-ASCII only strings.=
To get a normal C literal string to assign to a LPCWSTR
, you need to prefix it with L
LPCWSTR a = L"TestWindow";