bool O2Profile:: Load(void) { struct _stat st; if (_wstat(ProfileFilePath.c_str(), &st) == -1) return false; if (st.st_size == 0) return false; return (ImportFromXML(ProfileFilePath.c_str(), NULL, 0)); }
bool O2IPFilter:: Load(const wchar_t *filename) { struct _stat st; if (_wstat(filename, &st) == -1) return false; if (st.st_size == 0) return false; ImportFromXML(filename, NULL, 0); return true; }
bool O2IMDB:: Load(const wchar_t *filename) { struct _stat st; if (_wstat(filename, &st) == -1) return false; if (st.st_size == 0) return false; ImportFromXML(filename, NULL, 0); NewMessageFlag = false; return true; }
bool O2IMDB:: Load(const wchar_t *filename) { struct _stat st; if (_wstat(filename, &st) == -1) return false; // マルチバイト化 string mFilename; FromUnicode(_T(DEFAULT_XML_CHARSET), wstring(filename), mFilename); if (stat(mFilename.c_str(), &st) == -1) return false; if (st.st_size == 0) return false; ImportFromXML(filename, NULL, 0); NewMessageFlag = false; return true; }