#ifdef Q_OS_WINlabel->setText(QString::fromStdWString(path.wstring()));#elselabel->setText(QString::fromStdString(path.string()));#endif
boost::filesystem::path p( soundCacheDir );#if (BOOST_VERSION > 104400) boost::filesystem::path abs_p = boost::filesystem::absolute( p );#else boost::filesystem::path abs_p = boost::filesystem::complete( p );#endif// char full[ _MAX_PATH ];// if ( _fullpath( full, "..\\..\\..\\..\\..", _MAX_PATH ) != NULL )#if (BOOST_VERSION > 104400) if ( boost::filesystem::exists( abs_p ) )#else if ( boost::filesystem2::exists( abs_p ) )#endif { //soundFile = string( full ) + string( "/" ) + soundFile; p /= soundFile; soundFile = abs_p.string() + string("/") + soundFile; }
fs::path p = fs::current_path()/"..";
std::thread(threadFunction).detach();
std::thread(processKeyboard).detach();std::thread(processPrinter).detach();