_tcschr在Microsoft Visual Studio 2005下发生错误
const _TCHAR* pFind = bAttrib?_T("<&>\'\""):_T("<&>");
CString csText;
const _TCHAR* pSource = szText;
_TCHAR cSource = *pSource;
_TCHAR* pFound;
if ( (pFound=_tcschr(pFind,cSource)) != NULL )//错误 cannot convert from 'const char *' to '_TCHAR *'
{ }
在VC6。0下没有问题,到Microsoft Visual Studio 2005下就有如下错误cannot convert from 'const char *' to '_TCHAR *'
const _TCHAR* pFind = bAttrib?_T("<&>\'\""):_T("<&>");
CString csText;
const _TCHAR* pSource = szText;
_TCHAR cSource = *pSource;
_TCHAR* pFound;
if ( (pFound=_tcschr(pFind,cSource)) != NULL )//错误 cannot convert from 'const char *' to '_TCHAR *'
{ }
在VC6。0下没有问题,到Microsoft Visual Studio 2005下就有如下错误cannot convert from 'const char *' to '_TCHAR *'
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货