Advertisement

C/C++ Question, please help...

Started by February 28, 2000 08:27 PM
2 comments, last by Tony Chamblee 24 years, 6 months ago
Does anyone out there know how to obtain file lists/directory lists using standard C/C++ code? (Sort of like the equivilent of a file list/directory box in VB or Visual C++) -Tony Chamblee- http://nucleus.artoo.net
*Tony Chamblee*
Liquid Flame Software
For low level file/directory access findfirst & findnext are in most implementions of DOS and Windows C/C++ compilers. But they are not ANSI standard functions.

If you''re looking for Win32 calls use FindFirstFile, FindNextFile, CloseFile. check www.micrsoft.com/msdn for details on usage.

--Rick
Advertisement
If you want to use MFC, you can use CFileDialog:

CString fullPathToFile;
CFileDlg dlg;
if (dlg.DoModal () == IDOK)
{
fullPathToFile = dlg.GetPathName ();
}


Hey, thanks for your help. I got everything working smoothly last night...

(You can end this thread now...)





-Tony Chamblee-
http://nucleus.artoo.net
*Tony Chamblee*
Liquid Flame Software

This topic is closed to new replies.

Advertisement