CompletePathWithAppPath

/**
*
*   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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值