wchar_t *”变换为“const std:string

wchar_t *”转换为“const std::string ?
wchar_t *wtext = new wchar_t[requiredSize+1];
mbstowcs(wtext, label, requiredSize+1);
 setLabel (WideCharToMultiByte(wtext));
有这样一段程序,提示错误说是,无法将Label::setLabel”: 不能将参数 1 从“wchar_t *”转换为“const std::string &”
要怎么修改呢?

------解决方案--------------------
构造一个string对象给他就好了

C/C++ code
setLabel (std::string(WideCharToMultiByte(wtext)));