| Author |
Files in current directory
|
|
| Jacky Luk 2005-06-02, 9:06 am |
| Which API(s) or C/C++ library functions can retrieve all the names of the
files in a directory?
Thanks
Jack
| |
| thatsalok 2005-06-02, 4:01 pm |
| 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
>
>
| |
| Jacky Luk 2005-06-02, 4:01 pm |
| 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...
>
>
| |
| William DePalo [MVP VC++] 2005-06-02, 4:01 pm |
| "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
|
|
|
|