typedef wchar_t WCHAR
typedef unsigned short WCHAR;
typedef WCHAR *PWCHAR;
typedef WCHAR *LPWCH, *PWCH;
typedef CONST WCHAR *LPCWCH, *PCWCH;
typedef WCHAR *NWPSTR;
typedef WCHAR *LPWSTR, *PWSTR;
typedef CONST WCHAR *LPCWSTR, *PCWSTR;
typedef CHAR *PCHAR;
typedef CHAR *LPCH, *PCH;
typedef CONST CHAR *LPCCH, *PCCH;
typedef CHAR *NPSTR;
typedef CHAR *LPSTR, *PSTR;
typedef CONST CHAR *LPCSTR, *PCSTR;
typedef WCHAR TCHAR, *PTCHAR;
typedef WCHAR TBYTE , *PTBYTE
string--->LPCTSTR
#include <tchar.h>
LPCSTR p=_T("Hello!s");
LPCSTR-->string
CString-->char*
#include <atlstr.h>
char *CString2Char(CString cstr,char *c)
{
LPTSTR lpsz = new TCHAR[cstr.GetLength()+1];
_tcscpy(lpsz, cstr);
WideCharToMultiByte(CP_ACP, 0, lpsz, -1, c, strlen(c), NULL, NULL);
return c;
}