//================================================================== AnsiStr CreateNewFileAtRoot(const char* pExtWithDot) { AnsiStr strOutput = ps::dir::GetExePath(); int posDot; if(strOutput.rfind(L'.', posDot)) { AnsiStr temp = strOutput.substr(0, posDot); temp.appendFromT(pExtWithDot); return temp; } else return strOutput; }