// ../../a.txt to D:/a.txtstring MyStr::PathToAbsolute(const string dir){char dir1[MAX_PATH] ;_fullpath(dir1, dir.c_str(), MAX_PATH);return dir1;}