I have a situation where I need to convert this:
WCHAR path[260];
to:
LPCWSTR pathAfterConversion;
How can I do that?
LPCWSTR pathAfterConversion = path;
should work fine.
Note that WCHAR
is actually wchar_t
and LPCWSTR
is actually wchar_t const*
. Both are typedefs.
pathAfterConversion = path;
No conversion necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With