CasperTheGhost
Programmer
How do you get the correct file order selection from CFileDialog?
When selecting multiple-files (OFN_ALLOWMULTISELECT flag set) the string returned (using GetStartPosition, GetNextPathName, etc) is NOT necessarily the selected file order? Example: select 1.txt, 2.txt, 3.txt from the OPEN dialog and the edit box shows the order as 3.txt, 2.txt and 1.txt. Thinking simply reversing the string?, thought of that - there are numerous ways of selecting files from a folder (ctrl, shift, etc.) and they all either reverse the file order selection or insert into the string randomly depending if you select down a column or the far right, etc.
Any help would be appreciated in advance.....
When selecting multiple-files (OFN_ALLOWMULTISELECT flag set) the string returned (using GetStartPosition, GetNextPathName, etc) is NOT necessarily the selected file order? Example: select 1.txt, 2.txt, 3.txt from the OPEN dialog and the edit box shows the order as 3.txt, 2.txt and 1.txt. Thinking simply reversing the string?, thought of that - there are numerous ways of selecting files from a folder (ctrl, shift, etc.) and they all either reverse the file order selection or insert into the string randomly depending if you select down a column or the far right, etc.
Any help would be appreciated in advance.....