/**
*
* All the components that are specified in the given descriptor (drive letter,
* path and file name, including extension) are put into the result;
所有在给定描述符中的组件(驱动器字母、路径、和文件名包含扩展名)放入结果:
* any missing components (path and drive letter) are taken from the app's path.
* 任何缺少的部分(路径和文件名)从APP路径获得
* Can be used e.g. to load a bitmap file when an application don't know where
* it has been installed.
* 可以用来,例如,载入一个位图文件,却不知道安装在哪里
* Example1:
* TFilename fname = _L("/testdir/pics.mbm"); // Use _LIT instead
* CompletePathWithAppPath( fname );
* Result:
* fname == "c:/testdir/pics.mbm" if application was installed to c:
*
* Example2:
* TFilename fname = _L("pics.mbm"); // Use _LIT instead
* CompletePathWithAppPath( fname );
* Result:
* fname == "c:/system/apps/myapp/pics.mbm" if application was
* installed to c:/system/apps/myapp
*
* @param aFileName FileName which will be completed with application's path
文件名
* @return Error code if an error occured. In case of an error aFileName will
* not be changed
*/
IMPORT_C TInt CompleteWithAppPath( TDes& aFileName );
aknutils.h File Reference
Published in S60 1st Ed
Link against: avkon.lib eikcore.lib
Parameters:
aFileName FileName which will be completed with application's path
Returns:
Error code if an error occured. In case of an error aFileName will not be changed