#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp> std::string exePath = boost::filesystem::initial_path<boost::filesystem::path>().string();
这样就可以了。避免用win32 API这种又不友好也不跨平台的方式了。直接用boost舒服。
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp> std::string exePath = boost::filesystem::initial_path<boost::filesystem::path>().string();
这样就可以了。避免用win32 API这种又不友好也不跨平台的方式了。直接用boost舒服。
该资源仅限VIP专享下载