Commit a4a0aab2 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54739 954022d7-b5bf-4e40-9824-e11837661b57
parent d43a3f37
......@@ -448,7 +448,7 @@ namespace NSFile
return true;
}
bool CreateFile(const std::wstring& sFileName)
bool CreateFileW(const std::wstring& sFileName)
{
#if defined(WIN32) || defined(_WIN32_WCE)
m_pFile = _wfopen(sFileName.c_str(), L"wb");
......@@ -474,6 +474,14 @@ namespace NSFile
dwSizeRead = (DWORD)fread((void*)pData, 1, nBytesToRead, m_pFile);
return true;
}
bool WriteFile(BYTE* pData, DWORD nBytesCount)
{
if (!m_pFile)
return false;
size_t nCountWrite = fwrite((void*)pData, 1, nBytesCount, m_pFile);
return true;
}
};
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment