开发者

How do you convert LPCWSTR to const char *?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜