What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)?

后端 未结 8 1007
遥遥无期
遥遥无期 2020-12-03 17:02

This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing

8条回答
  •  盖世英雄少女心
    2020-12-03 17:56

    You can put condition in your code

    ifdef _UNICODE

    { //DO LIKE TCHAR IS WIDE CHAR } ELSE { //DO LIKE TCHAR IS CHAR }

提交回复
热议问题