error C2664的解决方法

错误信息:

E:/Work/1.9SP1/ginfo/client/src/skdevice/USBPhone.cpp(245) : error C2664: 'SetWindowTextW' : cannot convert parameter 2 from 'char [600]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

 

E:/Work/1.9SP1/ginfo/client/src/skdevice/USBPhone.cpp(233) : error C2664: 'int __cdecl WTL::CString::Format(const unsigned short *,...)' : cannot convert parameter 1 from 'char [28]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

 

这种方法是只要添加   _T("你的内容")...

你可能感兴趣的:(VC++技术,MFC&WTL)