wxFileSystem的FindNext返回的本身就是Unix类型的路径,要转换为Windows下可用的,而且是wxWidgets可用的,需要这几步
filePath是FindNext生成的路径
wxFileName temp(filePath,wxPATH_UNIX);
filePath = temp.GetFullPath();
wxString old = "%3a";
wxString news = ":";
filePath.Replace(old,news,true);
filePath.Replace("file:\\","");
不知道怎么回事,是官方没提供全相应的功能,还是我没找到呢
转载于:https://blog.51cto.com/bhlzlx/1011101