|
-
June 28th, 2009, 07:21 PM
#1
[RESOLVED] Find directories
Hi Guys,
I am new to c++ and win32.
I want to quickly write code to find all subdirectories within a given directory
and store these as a tchar array.
Can you please help me ?
Thanks a lot.
-
June 29th, 2009, 01:30 AM
#2
Re: Find directories
You could try the FindFirstFile and FindNextFile functions
-
June 29th, 2009, 01:47 AM
#3
-
June 29th, 2009, 01:48 AM
#4
-
June 29th, 2009, 12:16 PM
#5
Re: Find directories
Thanks a lot guys, but I need to find only the folder names and create an array of them .
I do not need to find the files inside each folder.
-
June 29th, 2009, 12:30 PM
#6
Re: Find directories
 Originally Posted by harsh_1986
Thanks a lot guys, but I need to find only the folder names and create an array of them .
I do not need to find the files inside each folder.
The answer is in this thread. Did you read the links you were provided?
-
June 29th, 2009, 12:34 PM
#7
Re: Find directories
Then use CFileFind::IsDirectory (in case of MFC) or GetFileAttributes API) to check if the file is directory.
Victor Nijegorodov
-
June 29th, 2009, 12:54 PM
#8
Re: Find directories
I found one where I have to create a CstringArray but mine is not an MFC.
I am confused what all to include.
-
June 30th, 2009, 02:36 AM
#9
Re: [RESOLVED] Find directories
You could use std::vector instead.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|