Char* To CString directly causes error!

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();
posted @ 2007-04-27 11:25  能巴  阅读(261)  评论(0编辑  收藏  举报