I have an application (C++ Builder 6.0) that needs to know the total of images there are in a specific folder, and then I have to load them: in an ImageList or in a ComboBoxEx… or any other control…
How can I do that?
I know how to load an image in a control, or to save in a TList, or in an ImageList… but How to know how many files files there are in the directory, and how to load every image in it??
I am Sorry about my English.
I did something like this yesterday with C++ using the boost::filesystem library. However, if you are not using boost already, I would strongly recommend you just use the windows libraries instead. This was my code though in case you’re interested:
This doesn’t answer the part of your question about how to actually put the paths into a listbox though.