1、char* 转 LPCTSTR
char buf[1024] = {0};
sprintf_s(buf, 1024, "FireAnim/Fire%03d.bmp", i + 1);
int num = MultiByteToWideChar(0,0,buf,-1,NULL,0);
wchar_t *wide = new wchar_t[num];
MultiByteToWideChar(0,0,buf,-1,wide,num);
2、 LPCTSTR 转换成 char *
wchar_t widestr[1024] = L"12341234";
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);