利用CString做一下中间转换。
const char *str;
CString temp = str;
LPCWSTR app = (LPCWSTR)(temp.AllocSysString());
这样就把str转化成LPCWSTR类型的app了