search dlls files in Series60 3rd edition...
| Wed, 2006-05-24 13:10 | |
|
hello, I have an S6- 3rd edition application. i need to search for my application, dlls plugins in \sys\bin\ folder because i understood that only from this folder i can then load them correctly in S60 3rd edition. now my problem is how to find dlls in this folder, \sys\bin\ , because using FindWildByPath method always return -1 error code, when using this folder. if i use another dlls path( \ myapp\plugins\ for example) the FindWildByPath method works correctly returning KErrNone. My question is how to find dlls in \sys\bin\ folders ? I've used the following code: ................................... //_LIT(KPluginsDir,"\\myapp\\plugins\\"); _LIT(KPluginsDir,"\\sys\\bin\\"); _LIT(KWildFind,"*.dll"); ................................... // open file server session User::LeaveIfError(iFs.Connect()); TFindFile findFile(iFs); CDir* dirList = NULL; TInt err; TFileName pluginsPath; // the next line return the drive letter (c: or e: for example) pluginsPath = NEikonEnvironment::ApplicationDrive(); pluginsPath.Append(KPluginsDir); TFileName fullName; err = findFile.FindWildByPath(KWildFind,&pluginsPath,dirList); // search all the dlls from the current folder... while(err==KErrNone) { TFileName path = findFile.File(); if(path.Length()>3) { for(TInt i=0; i<dirList->Count(); i++) { TParse fileName; fileName.Set((*dirList)[i].iName,&path,NULL); fullName = fileName.FullName(); ......................... } } delete dirList; dirList = NULL; err = findFile.FindWild(dirList); } delete dirList; |
|






Forum posts: 35
/**
System wide error code - an operation cannot be performed due to
a potential security violation.
A system wide error code indicates an error in the environment, or in
user input from which a program may recover.
*/
const TInt KErrPermissionDenied=(-46);
see e32err.h header file.
maybe i need to modify the CAPABILITY parameter in my .mmp file. now is "ReadUserData". i've tryed with "AllFiles
" parameter , but i can't install my app using that. i have a development certificate.
What should I do ?
Forum posts: 71
ya its correct. u cant access the sys/bin folder without having proper CAPABILITIES.( even if u give ALL-TCB ). becoz, these kind of folders will be accessed mostly by system applications. those applications will be having the TCB capability. this TCB(Trusted Computing Base) capability will be provided only when u r in the level of a symbian platinum partner. if u r not a symbian platinum partner, u cant get that TCB capability. without TCB capability, even u cant access sys/resource and also some other sys folders.