C/C++ Question, please help...
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
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
If you''re looking for Win32 calls use FindFirstFile, FindNextFile, CloseFile. check www.micrsoft.com/msdn for details on usage.
--Rick
--Rick
TribesPlayers.com
TribesPlayers.com
If you want to use MFC, you can use CFileDialog:
CString fullPathToFile;
CFileDlg dlg;
if (dlg.DoModal () == IDOK)
{
fullPathToFile = dlg.GetPathName ();
}
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
Liquid Flame Software
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement