static void create_directory(const path &p) { if(!CreateDirectory(p.directory_str().c_str(), NULL)) { TCHAR chBuf[2048]; swprintf_s(chBuf, _countof(chBuf), L"Can't create directory:[%s]!!", p.buf); TRACEERR("[path] [create_directory]", chBuf, GetLastError()); throw path_error("CreateDirectory"); } }