Jump to content
  • Advertisement
Sign in to follow this  
VanillaSnake21

Directory Tree

This topic is 4026 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i want to make a dialog that will let the user choose a directory, but I don't know how to go about listing all the directories. I thought about using CTreeCtrl and then fill it in during runtime by iterating through all directories and getting their names. So does anyone know how to get the directory name, then look for other directories within that one, and recurse down into it? I tried using ICurrentWorkingDirectory but I think I have to initialize it somehow for it to work. BTW if anyone knows how to do this with Boost or other libraries, or in a simpler way please let me know, thanks :)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by SiCrane
Assuming that you're using windows, did you try the SHBrowseForFolder() function?


Wow thanks, one function does it all for you, I will use this for now but I'd want to add some custom stuff to my list, so maybe you know a function that will get/set a directory name, Thanks :]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!