Code: Select all
// this directory DOES exsists, and it DOES have 4 .xml files in it
wxString myDir(wxT("C:\\somedir");
wxArrayString theFiles;
wxDir::GetAllFiles(myDir, &theFiles, wxT("xml"), wxDIR_FILES);
// check that wxDir found the files
wxASSERT(theFiles.GetCount()>0); // this fails ALLWAYS
im i doing something wrong, or is wxDir broken?
Thanks!