Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

如何获得图片文件夹的根路径

From Wiki
Jump to: navigation, search
Article Metadata

文章
翻译:
hoolee
最后由 hamishwillee 在 22 Dec 2011 编辑

头文件和链接库

LIBRARY  PlatformEnv.lib
#include <PathInfo.h>


获得手机内存中图片文件夹的路径

TBuf<256> cDrivePath;
// phone memory root
cDrivePath.Copy(PathInfo::PhoneMemoryRootPath());
// Images path on c drive
cDrivePath.Append(PathInfo::ImagesPath());


获得存储卡中图片文件夹的路径

TBuf<256> eDrivePath;
/* next, the MMC gallery if one exists */
//Memory Card root
eDrivePath.Copy(PathInfo::MemoryCardRootPath());
//Images path in e drive
eDrivePath.Append(PathInfo::ImagesPath());

更多相关信息请参考:-

PathInfo Class Reference

This page was last modified on 22 December 2011, at 05:05.
81 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×