char* 转换成 LPCTSTR
char ch[1024] = "Good Morning";
int num = MultiByteToWideChar(0,0,ch,-1,NULL,0);
//获得长字节所需的空间
wchar_t *wide = new wchar_t[num];
MultiByteToWideChar(0,0,ch,-1,wide,num);
LPCTSTR 转换成 char *
wchar_t widestr[1024] = L"Good Morning";
int num = WideCharToMultiByte(CP_OEMCP,NULL,widestr,-1,NULL,0,NULL,FALSE);
char *pchar = new char[num];
WideCharToMultiByte (CP_OEMCP,NULL,widestr,-1,pchar,num,NULL,FALSE);