Commit c87116ff authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

fix wtoi под Linux

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@67591 954022d7-b5bf-4e40-9824-e11837661b57
parent 9cad30b1
......@@ -715,11 +715,33 @@ namespace SimpleTypes
virtual unsigned int FromString(CString &sValue)
{
try
{
#if !defined(_WIN32) && !defined (_WIN64)
this->m_eValue = _wtoi( sValue.c_str() );
#else
this->m_eValue = _wtoi( sValue );
#endif
return this->m_eValue;
}
catch(...)
{
}
try
{
#if !defined(_WIN32) && !defined (_WIN64)
this->m_eValue = static_cast<int>(_wtoi64(sValue.c_str()));
#else
this->m_eValue = static_cast<int>(_wtoi64(sValue));
#endif
}
catch(...)
{
this->m_eValue = 0;
}
return this->m_eValue;
}
......
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