wchar_t wstr[100]=L"wstr";
char str[100];
wcstombs(str,wstr,100);//宽字符转多字节
mbstowcs(wstr,str,100);//多字节转宽字符

  

也可以使用:MultiByteToWideChar和WideCharToMultiByte

参考:

http://blog.csdn.net/iamoyjj/archive/2011/05/06/6400877.aspx

相关文章:

  • 2021-11-12
  • 2021-05-22
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案