for any directory other than C:\\. Subsequent items are listed correctly until the program reaches a folder or file that contains non-ASCII characters. For example, the output for a folder containing "PPヨ摠ヨ" is
everything up to this point is correct (except [0] and [1])
[83] - PP[84] - [85] - [86] - [87]
and so on until the end of the directory is reached, even though all file names after [84] contain only ASCII characters. Even the endl is ignored. GetLastError() returns 18 after [1] and then 0; the project is set to use Unicode characters.
Any ideas what I might be doing wrong (besides the poor formatting)?
The display problem is caused due to the font of your console.
Then one more:
windows puts the directory
.
..
these represent the current directory and parent directory...