예제 #1
0
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));
}
예제 #2
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;
}
예제 #3
0
파일: O2IMDB.cpp 프로젝트: idobatter/o2on
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;
}
예제 #4
0
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;
}