CString 输出

(1)std::cout不支持宽字符,如果需要使用UNICODE,需要使用std::wcout输出宽字符。同时,需要对CString做一下转换,LPCTSTR(cpath); 【亲测可以】


(2)wcout < <cpath.GetString() < <endl; 


(3)CString cpath = _T( "D:\\yx\\test\\*.* "); 
cout < < (LPCTSTR)cpath < < endl; 

posted on 2015-07-09 17:33  fag888  阅读(190)  评论(0编辑  收藏  举报

导航