I\'m making an application with wxWidgets that has a listbox in it. I want to get the current working directory of the application, and in that listbox, list all the folders
You could use wxDirTraverser - you implement a subclass and override some methods which will be called depending if the item is a file or directory.
You could also use wxDir::GetAllFiles, which will return a wxArray (which might be more convient for you, displaying it in a list).