Skip to main content
deleted 7 characters in body
Source Link
Laurel
  • 6.2k
  • 14
  • 35
  • 60

Thanks thisThis worked in wxWidgets: (I know I should just use the wx utilities but it is a test)

void WxWidgetsBoostTestFrame::OnTestBtnClick(wxCommandEvent& event) { boost::filesystem::path currentPath; currentPath = boost::filesystem::current_path(); std::string curDirString; curDirString = boost::filesystem::canonical(currentPath).string(); wxString mystring(curDirString.c_str(), wxConvUTF8); wxMessageBox(mystring); // output: C:/Users\client\Desktop... } 

Thanks this worked in wxWidgets: (I know I should just use the wx utilities but it is a test)

void WxWidgetsBoostTestFrame::OnTestBtnClick(wxCommandEvent& event) { boost::filesystem::path currentPath; currentPath = boost::filesystem::current_path(); std::string curDirString; curDirString = boost::filesystem::canonical(currentPath).string(); wxString mystring(curDirString.c_str(), wxConvUTF8); wxMessageBox(mystring); // output: C:/Users\client\Desktop... } 

This worked in wxWidgets: (I know I should just use the wx utilities but it is a test)

void WxWidgetsBoostTestFrame::OnTestBtnClick(wxCommandEvent& event) { boost::filesystem::path currentPath; currentPath = boost::filesystem::current_path(); std::string curDirString; curDirString = boost::filesystem::canonical(currentPath).string(); wxString mystring(curDirString.c_str(), wxConvUTF8); wxMessageBox(mystring); // output: C:/Users\client\Desktop... } 
Source Link
Paddy
  • 31
  • 1

Thanks this worked in wxWidgets: (I know I should just use the wx utilities but it is a test)

void WxWidgetsBoostTestFrame::OnTestBtnClick(wxCommandEvent& event) { boost::filesystem::path currentPath; currentPath = boost::filesystem::current_path(); std::string curDirString; curDirString = boost::filesystem::canonical(currentPath).string(); wxString mystring(curDirString.c_str(), wxConvUTF8); wxMessageBox(mystring); // output: C:/Users\client\Desktop... }