xj qian
2024-06-27 51faca7cff4ce6b848fcbd8f7fe881f6fc59b4f3
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;
    }
};