早教吧 育儿知识 作业答案 考试题库 百科 知识分享

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"是什么原因造成的呢
▼优质解答
答案和解析
我现在调用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,为什么呢?查看原帖>>