开发者

How do you convert LPCWSTR to const char *?

开发者 https://www.devze.com 2023-02-01 03:49 出处:网络
How do you convert LPCWSTR to const ch开发者_如何学运维ar *? ThanksUse the WideCharToMultiByte function.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消