<ClCompile Include="..\..\Src\FilterCommentsManager.cpp" />\r
<ClCompile Include="..\..\Src\FilterList.cpp" />\r
<ClCompile Include="..\..\Src\FolderCmp.cpp" />\r
- <ClCompile Include="..\..\Src\Common\LogFile.cpp" />\r
<ClCompile Include="..\..\Src\Common\lwdisp.c" />\r
<ClCompile Include="..\..\Src\markdown.cpp" />\r
<ClCompile Include="..\..\Src\MovedBlocks.cpp" />\r
<ClCompile Include="..\..\Src\FolderCmp.cpp">\r
<Filter>Source Files</Filter>\r
</ClCompile>\r
- <ClCompile Include="..\..\Src\Common\LogFile.cpp">\r
- <Filter>Source Files</Filter>\r
- </ClCompile>\r
<ClCompile Include="..\..\Src\Common\lwdisp.c">\r
<Filter>Source Files</Filter>\r
</ClCompile>\r
-#include <iostream>\r
-#include "UnicodeString.h"\r
-#include "LogFile.h"\r
-#include "unicoder.h"\r
-\r
-CLogFile g_log;\r
-\r
+#include <iostream>
+#include "UnicodeString.h"
+#include "unicoder.h"
+#include <Windows.h>
+
String GetSysError(int nerr /* =-1 */)
{
if (nerr == -1)
LocalFree( lpMsgBuf );
return str;
}
-\r
-String LoadResString(unsigned id)\r
-{\r
- return _T("Nothing");\r
-}\r
-\r
-CLogFile * GetLog()
+
+String LoadResString(unsigned id)
{
- return &g_log;
+ return _T("Nothing");
}
-\r
+
void LogErrorStringUTF8(const std::string& sz)
{
std::cout << sz;
}
-\r
+
void LogErrorString(const String& sz)
{
std::cout << ucr::toUTF8(sz);
}
-\r
+
void AppErrorMessageBox(const String& msg)
{
MessageBox(NULL, msg.c_str(), NULL, MB_ICONSTOP);
}
+
+String tr(const std::string& str)
+{
+ return ucr::toTString(str);
+}