Hi all,
I have a little problem with GetFolderPath.
First, I create an object f as this:
CFileDialog f(true, "txt", NULL, OFN_EXPLORER, "Texte Files (*.txt)|*.txt|", this);
Then, I want to retrive to open folder path of a file, but if I do this:
m_list.AddString((const char*) (LPCSTR) f.GetFolderPath());
I have an assertion problem.
So, how can I do, to obtaining the open folder path of a file.
Many thanks,
Michael.
I have a little problem with GetFolderPath.
First, I create an object f as this:
CFileDialog f(true, "txt", NULL, OFN_EXPLORER, "Texte Files (*.txt)|*.txt|", this);
Then, I want to retrive to open folder path of a file, but if I do this:
m_list.AddString((const char*) (LPCSTR) f.GetFolderPath());
I have an assertion problem.
So, how can I do, to obtaining the open folder path of a file.
Many thanks,
Michael.