RFs::GetDir如何应用拜托各位大神

问题描述:

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 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,为什么呢?查看原帖>>