Is there anyway to use the FindFirstFile() function without having to fill in all the data members of the 2 structs it is passed first ?
i.e. if I don't default the LPWIN32_FIND_DATA structure to a set of default values I get an error. But, as far as I can see, the LPWIN32_FIND_DATA can be empty as the FindFirstFile() function fills this in.
Is there a better way for me to look at a subset of folders on a Drive and be able to view each file and folder in turn, or am I stuck using FindFirstFile() ?
(I know this can easily be done in DOS, and with a host of other tools, but I want to do this bit of my project in C++ as there are less files to worry about moving about)
Cheers,
K
i.e. if I don't default the LPWIN32_FIND_DATA structure to a set of default values I get an error. But, as far as I can see, the LPWIN32_FIND_DATA can be empty as the FindFirstFile() function fills this in.
Is there a better way for me to look at a subset of folders on a Drive and be able to view each file and folder in turn, or am I stuck using FindFirstFile() ?
(I know this can easily be done in DOS, and with a host of other tools, but I want to do this bit of my project in C++ as there are less files to worry about moving about)
Cheers,
K