symbian加载不了jpg
void CSymbian5Container::ConstructL(const TRect& aRect)
{
CreateWindowL();
//获取系统时间
TBuf<60> strTime;
TTime tTime;
tTime.HomeTime();
TDateTime kk =tTime.DateTime();
strTime.Format(_L("%d%d%d %d:%d:%d"),kk.Year(),kk.Month(),kk.Day(),kk.Hour(),kk.Minute(),kk.Second());
//创建label用来显示时间
iLabel = new (ELeave) CEikLabel;
iLabel->SetContainerWindowL( *this );
iLabel->SetTextL(strTime);
//读取jpg
_LIT(KJPEGFile,"c:\\02.jpg");
_LIT(KJPEGType,"image/jpeg");
//创建文件服务器会话iRFs
RFs iRFs;
//连接到文件服务器
User::LeaveIfError(iRFs.Connect());
iRFs.Connect();
//创建图片解析器
CImageDecoder* iDec00 = CImageDecoder::FileNewL(iRFs,KJPEGFile);
// create the destination bitmap
iBkImageMask=new (ELeave) CFbsBitmap();
iBkImageMask->Create(iDec00->FrameInfo().iOverallSizeInPixels,iDec00->FrameInfo().iFrameDisplayMode);
//start conversion to bitmap
TRequestStatus iStatus = KErrNone;
iDec00->Convert(&iStatus, *(iBkImageMask));
//将imageDecoder/fsSession清除
delete iDec00;
iRFs.Close();
//设置容器大小
SetRect(aRect);
ActivateL();
图片已经拷贝到相应目录下,但是执行完构造函数就直接退出了。不知道咋回事,帮看看啊,大侠们