How do you convert LPCWSTR to const ch开发者_如何学运维ar *?
Thanks
Use the WideCharToMultiByte
function.
Note that LPCWSTR
is the same as const wchar_t *
, so if you're dealing with wide character data throughout your application, you may not need to convert it at all.
You can also have a look at wcstombs_s
精彩评论