I have a window which is displaying information from a SQLite record. One of the fields is a path to a folder of images but does NOT specify a particular image - just the folder where several images are located.
I want to dialog to open with the folder specified in the path which is just a text/string field. Apparently the InitialDirectory property wants a FolderItem as the InitialDirectory.
If I just use GetFolderItem, I don’t get a dialog.
How do I convert the path as a string so that it can be used as the initial directory. Or how else do I indicate where I want the dialog to start.
1.If lpstrInitialDir has the same value as was passed the first time the
application used an Open or Save As dialog box, the path most recently
selected by the user is used as the initial directory.
2.Otherwise, if lpstrFile contains a path, that path is the initial
directory.
3.Otherwise, if lpstrInitialDir is not NULL, it specifies the initial
directory.
4.If lpstrInitialDir is NULL and the current directory contains any files of
the specified filter types, the initial directory is the current directory.
5.Otherwise, the initial directory is the personal files directory of the
current user.
6.Otherwise, the initial directory is the Desktop folder.