jrj/xframe/wobject/xutil.hpp
@@ -53,4 +53,20 @@ return Hxsoft::XUtil::FormatDecimalString(str, format, bfree); } public: static xstring GetModulePath() { wchar_t buf[255]; GetModuleFileName(0, buf, 255); PathRemoveFileSpec(buf); return xstring(buf); } static xstring GetModuleTmpPath() { xstring tmp = GetModulePath() + L"\\Temp"; xaserver::CreateDirectory(tmp); return tmp; } };