早教吧作业答案频道 -->其他-->
RFs::GetDir如何应用拜托各位大神下面是读目录的代码RFsmyRFs;myRFs.Connect();CDir*dir=NULL;User::LeaveIfError(myRFs.GetDir(KReadDir,KEntryAttNormal,ESortByDate,dir));TBufreadFileName;LIT(KNewLine,"\n");LIT(KNullDir,"This
题目详情
RFs::GetDir如何应用拜托各位大神
下面是读目录的代码 RFs myRFs; myRFs.Connect(); CDir *dir = NULL; User::LeaveIfError(myRFs.GetDir(KReadDir,KEntryAttNormal,ESortByDate,dir)); TBuf readFileName; _LIT(KNewLine,"\n"); _LIT(KNullDir,"This is null dirctory\n"); if (dir->Count()) { for (TInt i = 0; i < dir->Count(); i++) { readFileName = (*dir)[i].iName; readFileName += KNewLine; console->Printf(readFileName); } } else { console->Printf(KNullDir); } delete dir; dir = 0; delete console; myRFs.Close();运行程序后,报出“Exit type 2,65,E32USER-CBase"是什么原因造成的呢
下面是读目录的代码 RFs myRFs; myRFs.Connect(); CDir *dir = NULL; User::LeaveIfError(myRFs.GetDir(KReadDir,KEntryAttNormal,ESortByDate,dir)); TBuf readFileName; _LIT(KNewLine,"\n"); _LIT(KNullDir,"This is null dirctory\n"); if (dir->Count()) { for (TInt i = 0; i < dir->Count(); i++) { readFileName = (*dir)[i].iName; readFileName += KNewLine; console->Printf(readFileName); } } else { console->Printf(KNullDir); } delete dir; dir = 0; delete console; myRFs.Close();运行程序后,报出“Exit type 2,65,E32USER-CBase"是什么原因造成的呢
▼优质解答
答案和解析
我现在调用iAgent->NextRecordRequestL ()查找服务的时候,在NextRecordRequestComplete(TInt aError,TSdpServRecordHandle aHandle,TInt aTotalRecordsCount)里,aError等于-25,aTotalRecordsCount = 0,为什么呢?我现在调用iAgent->NextRecordRequestL ()查找服务的时候,在NextRecordRequestComplete(TInt aError,TSdpServRecordHandle aHandle,TInt aTotalRecordsCount)里,aError等于-25,aTotalRecordsCount = 0,为什么呢?查看原帖>>
看了 RFs::GetDir如何应...的网友还看了以下:
已知指数函数y=g(x)满足:g(2)=4,定义域为R上的函数f(x)=−g(x)+ng(x)+m 2020-05-02 …
定义在R上的函数f(x),对任意x,y∈R,有f(x+y)+f(x-y)=2f(x)*f(y),且 2020-05-13 …
已知f(x)=e^x-e^﹣x,g(x)=e^x+e^﹣x(e=2.718…).设f(x)·f(y 2020-05-16 …
f(x)=e^x-e^-x,g(x)=e^x+e^-x,e=2.71(1)若f(x)f(y)=4, 2020-05-16 …
已知函数f(x)=e^x-e^-x,g(x)=e^x+e^-x 设f(x)f(y)=4,g(x)g 2020-05-16 …
某密闭容器中进行如下反应:X(g)+2Y(g)==2Z(g),若最初时只加X,Y两种物质,某密闭容 2020-06-07 …
有一部搞不懂已知函数f(x)为偶函数,g(x)为奇函数,且f(x)+g(x)=x^2+2x+3,求 2020-06-26 …
设f(x)是连续奇函数,g(x)是连续偶函数,区域D={(x,y)|0≤x≤1,-x≤y≤x},则 2020-07-08 …
三元一次方程组a*x+b*y+c*z+d=0,e*x+f*y+g*z+h=0,i*x+j*y+k* 2020-08-03 …
幂指函数y=f(x)g(x)在求导数时,可以运用对数法:在函数解析式两边求对数得lny=g(x)ln 2020-12-05 …