CString strImagePath = CfgInst.GetAppPath() + IMAGE_PATH;
_bstr_t bstr(strImagePath);
wchar_t *wstr = (wchar_t*)bstr;
m_pDeviceBoardImage = new Image(wstr);
加载图片时,表示图片路径的字符串转换成宽字符
最新推荐文章于 2020-12-24 23:35:36 发布
CString strImagePath = CfgInst.GetAppPath() + IMAGE_PATH;
_bstr_t bstr(strImagePath);
wchar_t *wstr = (wchar_t*)bstr;
m_pDeviceBoardImage = new Image(wstr);