| grumpy |
Oct 13th, 2006 7:16 PM |
Quote:
Originally Posted by waiteg
(Post 116422)
I am trying to add the names of the subfolders within a folder to an array of strings but I am completely stumped as to how to retrieve the names of the subfolders. Any ideas?
|
Sure. Problem is the sort of operations you describe (eg to get a directory listing) are operating system dependent. As DaWei hinted, the functions a keyword search for findfirst and findnext will find functions to start.
Under unix, the functions to support this ARE named findfirst() and findnext(). Under the win32 API, the functions to support this are named FindFirstFile() and FindNextFile().
Quote:
Originally Posted by waiteg
(Post 116422)
I would like to perform this operation natively (not managed).
|
I assume this means you are using "Managed C++", which I assume means you are working on a Microsoft operating system within the .NET environment. So the win32 API is probably a solution for you. But that's just a guess, as I do not use Managed C++.
If by "not managed" you are referring to something different, then see below.
Quote:
Originally Posted by waiteg
(Post 116422)
Also, I am a bit of a noob here, so could you pose an answer appropriately.
|
If you read the responses you have received so far, you might have enough to go on.
As a newbie, I would suggest you need to learn how to post a question appropriately. To that end, I suggest reading the sticky post in the C++ forum entitled "How to ask a question" --- it is right at the top of the list of threads.
People who participate in these forums are not mindreaders. If, as you have done, ask a question which is not particularly clear, you can expect unclear answers.
|