ANSI UNICODE 通用
(char.h) (wchar.h) (tchar.h)
char wchar_t TCHAR
atoi _wtoi _ttoi
atol _wtol _ttol
itoa _itow _itot
ltoa _ltow _ltot
atof _wtof _tstof
strlen wcslen _tcslen
strcat wcscat _tcscat
strcpy wcscpy _tcscpy
(char.h) (wchar.h) (tchar.h)
char wchar_t TCHAR
char * wchar_t * PTCHAR
printf wprintf _tprintf
scanf wscanf _tscanf
atoi _wtoi _ttoi
atol _wtol _ttol
itoa _itow _itot
ltoa _ltow _ltot
atof _wtof _tstof
strlen wcslen _tcslen
strcat wcscat _tcscat
strcpy wcscpy _tcscpy
strcmp wcscmp _tcscmp
一些常见的typedef定义:
typedef wchar_t WCHAR ;
typedef LPSTR WCHAR ;
typedef const char* LPCSTR;
typedef wchar_t* LPWSTR ;
typedef const wchar_t* LPCWSTR;
typedef char TCHAR;
typedef wchar_t TCHAR;
typedef TCHAR* LPTSTR;
typedef const TCHAR* LPCTSTR;