How can I make a file selection dialog for c: drive and MMC?
I tried to use AknCommonDialogs::RunSelectDlgLD but I'm not able ot set any parameters for it. The dialog always starts from C:\ and it shows all the files. And I'm not able to browse to MMC with it either.
I found another thread of this dialog but there was no help. Any ideas anybody?
I basically haven't ever used this dialog, so not sure really, but have you tried to specify the starting folder with aFileName argument. basically just setting it to some folder name before opening the dialog, try and let me know also if it works.
I didn't try it yet but I'm afraid that it won't work. The documentation says:
IMPORT_C TBool AknCommonDialogs::RunSelectDlgLD (TDes& aFileName, TInt aMemorySelectionResourceId, MAknFileSelectionObserver* aObserver = NULL) [static]
aFileName: Full path and filename of the file that user selects is stored to this descriptor.
aMemorySelectionResourceId: A resource id for memory selection dialog.
aObserver: An observer which is asked, if set, to verify user's selection.
It should be possible to set the default path on resources but I'm not able to get it working.