char filePath[100] = "this is char"
DWORD dwNum = MultiByteToWideChar (CP_ACP, 0, filePath, -1, NULL, 0);
wchar_t *pwText= new wchar_t[dwNum];
        MultiByteToWideChar(CP_ACP, 0, filePath, -1, pwText, dwNum);
wchar_t* wfilePath = pwText;
delete []pwText;
......... CeWritePrivateProfileString(DOWNLOAD_SECTION_NAME,
LAST_DOWNLOAD_FILE_NAME,
file_name.c_str(),
wfilePath);

总报错1>.\SpecificDatagram.cc(232) : error C2664: 'CeWritePrivateProfileString' : cannot convert parameter 1 from 'const char [17]' to 'LPCTSTR'
我用的是unicode编码
我上面不是把wfilePath已经转换成wchar_t了啊,为什么还报这个错呢