Starting a new Windows app: Should I use _TCHAR or wchar_t for text?

前端 未结 5 2095
梦谈多话
梦谈多话 2021-01-06 04:01

I\'m coding up a new (personal hobby) app for Windows in c++.

In previous low-level Windows stuff I\'ve used _TCHAR (or just TCHAR) arrays/basic_strings

5条回答
  •  长情又很酷
    2021-01-06 04:36

    Use TCHAR. It opens your application for both UNICODE and non UNICODE deployment scenarions. Of course there is more pain with string converstions and usage of standard string manipulation functions.

提交回复
热议问题