Home | Info | Community | Development | myReactOS

  1. Home
  2. Info
  3. Community
  4. Development
  5. myReactOS

ReactOS Community > ReactOS Wiki

Unicode

From ReactOS

Jump to: navigation, search

Do not make your programs use only UNICODE or only ANSI. Include <tchar.h> and use TCHAR instead of char, macro _T() for text strings, _tcscpy(), _tcscmp(), ... or lstrcpy(), lstrcmp(), ... macros for manipulating strings. To calculate length in TCHARs of the TCHAR array, use sizeof( array ) / sizeof( array[0] ) or sizeof( array ) / sizeof( TCHAR ).