MFC char与TCAHR互转
`
char Path[MAX_PATH] = {0};
TCHAR T_Path[MAX_PATH] = L"aaaaaaaaaa";
//TCHAR 转 char
wcstombs(Path, T_Path, MAX_PATH);
//char 转 TCHAR
memset(T_Path, 0, MAX_PATH);
mbstowcs(T_Path, Path, MAX_PATH);
`
Posted By veis
`
char Path[MAX_PATH] = {0};
TCHAR T_Path[MAX_PATH] = L"aaaaaaaaaa";
//TCHAR 转 char
wcstombs(Path, T_Path, MAX_PATH);
//char 转 TCHAR
memset(T_Path, 0, MAX_PATH);
mbstowcs(T_Path, Path, MAX_PATH);
`