August 27th, 2003, 08:37 AM
Question on MFC CFileDialog
I am able to successfully store the pathname which i selected in the FileDialog... but somehow the sequence is wrong.
For example i have1.txt, 2.txt, 3.txt, 4.txt; 4 files.
i select from 1 to 4, all the filename is in my array; but my first array which is  did not store 1.txt.. all the sequence is wrong.
I have tried 2 different PC it seems to give me different sequence.
Anyone knows what has happen actually? Any ways to solve the problem?
Thanks & appreciate your help.
August 27th, 2003, 08:39 AM
Arrays are zero based, so 1.txt would be .  would be 2.txt.
August 27th, 2003, 10:35 AM
not that... start from  also the same...
the sequence is just messed up. :(
August 27th, 2003, 01:12 PM
Usually in Windows, groups of filenames are returned in the order they're selected. You'll probably have to apply your own sort method to the array.