how to retrieve the path

Login to reply to this topic.
Wed, 2005-10-05 05:07
Joined: 2005-09-19
Forum posts: 45
Hi,

i am trying a camera application where i want to set the path for the snapped picture. but i have seen that the 'PathInfo' has some defined member functions which sets the path. If i create my own directory path in c:\ and want to save the snapped image in that, how can i retrieve the path that was created by me. Are there any functions thru which i can get the path

how should i proceed???

Thanku
Deepthi

Wed, 2005-10-05 05:47
venkatreddy (not verified)
Forum posts: 2043
Re: how to retrieve the path
HI

1) u have to set some path to a Constant ex:
_LIT(Kxxxx, "\\system\\apps\\xxxx\\");  then u have to use the file session to makedir and then u can open the path u had set .... it like file opening and file operations .....

for more details see the ciper example in the sdk where they had set the path to store the password and then comparing the password with the stored path ....

i think it will help full

Thu, 2005-10-06 05:24
Joined: 2005-09-19
Forum posts: 45
Re: how to retrieve the path

Hi,

In my app i have 3 menu options, based on the selection i need to set the path for saving the file into 3 diff paths.so should i create three  _ LIT() for those 3 paths.
how can i get the path of the dir that was created by me in some c:\ drive ?
can we have a submenu for another submenu?
ex:  Newlc-> Development-> UI

Thanku
Deepthi.
Fri, 2005-10-07 05:14
Joined: 2005-09-19
Forum posts: 45
Re: how to retrieve the path
 

No reply.......
Fri, 2005-10-07 20:01
Joined: 2005-07-28
Forum posts: 63
Re: how to retrieve the path
TFileName myPath;
myPath = PathInfo::PhoneMemoryRootPath();

and so on...
Mon, 2005-10-10 11:57
Joined: 2005-10-10
Forum posts: 18
Re: how to retrieve the path
Quote from: deepthis
 

No reply.......

_LIT(KFilePath, "\\system\\apps\\xxx\\yyyy.txt");
_LIT(KDir, "\\system\\apps\\xxx\\");

these 2 r file path and directory paths set by the user. If u want to access the paths at run time u need creat the directory and then u can access the file ....

iFsSession.MkDir(KCipherDir);  /// will creat a directory at run time
if (file.Replace(iFsSession, KFilePath, EFileRead) ); //// this will write to the file u had mentioned...

Before doing this operations u need to establish a file session...
  • Login to reply to this topic.