layerMan CGraphPara::GetPro(int lb,int id)
{
CString str;
str.Format((wchar_t )"%d",id);
int index = atoi(str.Left(3).Right(2)); //取ID中2,3位作为 编号;
switch (lb)
{
case 1:
return aLayer[index];
break;
case 2:
return lLayer[index];
break;
case 3:
return pLayer[index];
break;
}
}
错误3 error C2664: 'atoi' : cannot convert parameter 1 from 'ATL::CStringT<BaseType,StringTraits>' to 'const char *' e:\myproject\gisdll\gisdll\gisdll.cpp 458
{
CString str;
str.Format((wchar_t )"%d",id);
int index = atoi(str.Left(3).Right(2)); //取ID中2,3位作为 编号;
switch (lb)
{
case 1:
return aLayer[index];
break;
case 2:
return lLayer[index];
break;
case 3:
return pLayer[index];
break;
}
}
错误3 error C2664: 'atoi' : cannot convert parameter 1 from 'ATL::CStringT<BaseType,StringTraits>' to 'const char *' e:\myproject\gisdll\gisdll\gisdll.cpp 458
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货