>Has anyone done any work with the Win32 API functions FindFirstFile and
>FindNextFile? I found an old thread that gave some basic information on
>how to use FindFirstFile, but I'm having some problems in getting
>FindNextFile to work (I can't seem to pass the handle that is returned from
>FindFirstFile to FindNext file).
Are you checking the return handle against INVALID_HANDLE_VALUE (= -1)?
>Also, in the history thread an arbitrary length of 512 was used for the
>dwFileAttributes structure. Any additional information on how to use this
>structure (and size it correctly) would be great.
Do check the Win32API Help file that ships with VFP. The details are too long to post here (although, I think, this qualifies to be placed in the VFUG FAQ or something). And I just checked, C++ sizeof(WIN32_FIND_DATA) returns 320.
Hope this helps!
alistair israel
Distressed DBA, Sleepy SysAd, Weary WebMaster (aka Senior Software Engineer)
aisrael@poboxes.com
Makati City, Philippines