10.TEXT是在winnt.h中定义
举例:TCHAR *ptch = TEXT("This is a const string.");
如果使用UNICODE字符集, 则TEXT("This is a const string.")相当于L"This is a const string.",
如果使用ASCII集, 则上述字符串相当于“This is a const string.”;
11.Unicode与ANSI字符串转换
int WideCharToMultiByte(
UINT CodePage,
DWORD dwFlags,
LPCWSTR lpWideCharStr,
int cchWideChar,
LPSTR lpMultiByteStr,
int cbMultiByte,
LPCSTR lpDefaultChar,
LPBOOL lpUsedDefaultChar
);
-------------------------------------------------------------------------------------------------------
int MultiByteToWideChar(
UINT CodePage,
DWORD dwFlags,
LPCSTR lpMultiByteStr,
int cbMultiByte,
LPWSTR lpWideCharStr,
int cchWideChar
);