//CString转const char*
CString strFilePath;
const size_t strsize = (strFilePath.GetLength()+1)*2;
char* pstr = new char[strsize];
size_t sz = 0;
wcstombs_s(&sz,pstr,strsize,strFilePath,_TRUNCATE);
int n = atoi((const char*)pstr);
// const char* 转 LPCTSTR
const char* Time;
int length = sizeof(TCHAR)*(strlen(Time)+1);
LPTSTR tcBuffer = new TCHAR [length];
memset(tcBuffer,0,length);
MultiByteToWideChar(CP_ACP,0,Time,strlen(Time),tcBuffer,length);
LPCTSTR L_Time = (LPCTSTR)tcBuffer;