提示说Label::setLabel”: 不能将参数 1 从“wchar_t *”转换为“const std::string &”,下为程序,求解决
intrequiredSize=mbstowcs(NULL,label,0);wchar_t*wtext=newwchar_t[requiredSize+1];mbsto...
int requiredSize = mbstowcs(NULL, label, 0);
wchar_t *wtext = new wchar_t[requiredSize+1];
mbstowcs(wtext, label, requiredSize+1);
setLabel (wtext);//WideCharToMultiByte()
delete wtext; 展开
wchar_t *wtext = new wchar_t[requiredSize+1];
mbstowcs(wtext, label, requiredSize+1);
setLabel (wtext);//WideCharToMultiByte()
delete wtext; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询