Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do you know how to get all the names in a directory?

Status
Not open for further replies.

dannyqchen

Programmer
May 13, 2000
1
US
I am using VC6.0 to convert some data files. I need to know how to get all the names in a specified directory. If you have some suggestions, please email to <A HREF="mailto:dannyqchen@asu.edu">dannyqchen@asu.edu</A>.<br>Thanks.
 
Hi!<br><br>Try to use the following Win32 API:<br><br>HANDLE FindFirstFile(<br>&nbsp;&nbsp;LPCTSTR lpFileName,<br>&nbsp;&nbsp;LPWIN32_FIND_DATA lpFindFileData );<br><br>BOOL FindNextFile(<br>&nbsp;&nbsp;HANDLE hFindFile,<br>&nbsp;&nbsp;LPWIN32_FIND_DATA lpFindFileData );<br><br>BOOL FindClose(<br>&nbsp;&nbsp;HANDLE hFindFile );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top