获取当前路径

#include <wx/stdpaths.h>
#include <wx/filename.h>

wxString GetWorkDirectory( )
{
 wxString strAppPath ;
 wxStandardPathsBase& stdp = wxStandardPaths::Get();
 wxFileName exeFile(stdp.GetExecutablePath());
 strAppPath = exeFile.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);

 return strAppPath ;
}

你可能感兴趣的:(路径)