Hi All,
I am using VC++;
I want to fetch file name from a given string.
example
"C:\ETools\Power Generation\Shared\Captured Files\ATS.cap"
I just opend a dialog box to select multiple file.
when I select a single file this code gives me the
POSITION pos=fOpenDlg.GetStartPosition();
while(pos)
{
CString PathName=fOpenDlg.GetNextPathName(pos);
CString strFileName=PathName.GetFileName();
AfxMessageBox(strFileName);
}
But when I select multiple file it did not give file name.
Thanx in advance.
Last edited on