std::string fileName(ent->d_name); std::string strtring = AnsiToUtf8(fileName); #include <dirent.h> #