char* lpStr = "shell-ai-天天向上.prt"
CString strVal = lpStr;

As a result, strVal won't have correct string.

Solution:
CString strVal = UTX_NTOM(lpStr).c_str();

相关文章: