`
dqifa
  • 浏览: 112241 次
社区版块
存档分类
最新评论

获取当前路径

 
阅读更多

#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 ;
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics