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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 02:33:52

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
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::GetDir如何应用拜托各位大神下面是读目录的代码 RFs myRFs; myRFs.Connect(); CDir *dir = NULL; User::LeaveIfError(myRFs.GetDir(KReadDir,KEntryAttNormal,ESortByDate,dir)); TBuf readFileName; _LIT(KNewLine,"\n"); _LIT(KNullDir,"This
我现在调用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,为什么呢?查看原帖>>