Which API(s) or C/C++ library functions can retrieve all the names of the
files in a directory?
Thanks
Jack

Re: Files in current directory by thatsalok

thatsalok
Thu Jun 02 06:35:37 CDT 2005

FindFirstFile,FindNextFile


--
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com
"Jacky Luk" <jl@knight.com> wrote in message
news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
> Which API(s) or C/C++ library functions can retrieve all the names of the
> files in a directory?
> Thanks
> Jack
>
>



Re: Files in current directory by Jacky

Jacky
Thu Jun 02 06:44:03 CDT 2005

nice and neat thanks
Jack

"thatsalok" <thatsalok@NO_gmail.com_I_DONT_NEED_SPAM> ¼¶¼g©ó¶l¥ó·s»D:%23lBH1e2ZFHA.3328@TK2MSFTNGP09.phx.gbl...
> FindFirstFile,FindNextFile
>
>
> --
> cheers,
> Alok Gupta
> Visit me at http://alok.bizhat.com
> "Jacky Luk" <jl@knight.com> wrote in message
> news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
>> Which API(s) or C/C++ library functions can retrieve all the names of the
>> files in a directory?
>> Thanks
>> Jack
>>
>>
>
>



Re: Files in current directory by William

William
Thu Jun 02 11:16:36 CDT 2005

"Jacky Luk" <jl@knight.com> wrote in message
news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
> Which API(s) or C/C++ library functions can retrieve all the names of the
> files in a directory?

I see you have already been pointed to FindFirstFile() and FindNextFile().
Don't forget to call FindClose() when you are done or a memory and handle
leak will occur.

Regards,
Will