jump a messagebox when load image failed in uphone.

This commit is contained in:
Walzer 2010-11-17 07:24:50 +00:00
parent 575922ab7c
commit 0c687c3aac
1 changed files with 10 additions and 0 deletions

View File

@ -146,6 +146,16 @@ bool UIImage::initWithContentsOfFile(const string &strPath, tImageFormat imageTy
}
}
if (!bRet)
{
std::string strErr = "Load ";
strErr += strPath;
strErr += " failed!";
TUChar szText[256] = { 0 };
TUString::StrUtf8ToStrUnicode(szText,(Char*)strErr.c_str());
TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
}
return bRet;
}