Hi All,
Is there any means by which i would be able to access root folder of the device and the files there using OPENFILENAME or by any other means.
Thanks in advance
Sanjeeth
Hi All,
Is there any means by which i would be able to access root folder of the device and the files there using OPENFILENAME or by any other means.
Thanks in advance
Sanjeeth
how to get the root folder using OPENFILENAME
Re2Porter
From the little info I think you want to develop a directory browser, right If my guess is not wrong, then Microsoft has already given nice example with their SDK to do the same. Check the following directories:
Windows CE Tools\wce420\POCKET PC 2003\Samples\Win32\Dirtree
Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Dirtree
They nicely work in Smartphone also.
What do you need more
snowcover6
Hi Sanjeeth,
Doing this is against the recommended designed for windows mobile design guidelines and hence there is little support within the OS for doing this.
One solution would be to utilise the tgetfile library available from Tillanosoft (http://www.tillanosoft.com/ce/tgetfile.html). This however is not free.
Doing a quick websearch also brought up a "gsgetfile.dll" and related utility, http://www.pocketpcfreewares.com/en/index.php soft=752, it may be another avanue to investigate. There seems to be instructions on how to use this library here http://mobile-sg.com/forums/mobile_posts.asp id=147
Of couse you could also roll your own dialog from scratch, place a listview control on it and enumerate a directory etc etc.... but usually you'll find it easier to keep within the guidelines (and store files within the \My Documents structure) than going to this amount of development effort.
Hope it helps,
Christopher Fairbairn.