From cb0b3950ffe8229e09d7aac46a92b373fc9a4aeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 13 May 2001 22:09:53 +0000 Subject: [PATCH] now outputs errors to stderr git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/utils/wxrc/wxrc.cpp | 6 ++++++ utils/wxrc/wxrc.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/contrib/utils/wxrc/wxrc.cpp b/contrib/utils/wxrc/wxrc.cpp index f36768d150..79d7540fc3 100644 --- a/contrib/utils/wxrc/wxrc.cpp +++ b/contrib/utils/wxrc/wxrc.cpp @@ -98,6 +98,12 @@ int XmlResApp::OnRun() { wxCMD_LINE_NONE } }; +#if wxUSE_GUI + // VS: I need reasonable output to console from wxCmdLineParser + wxLog::SetTimestamp(NULL); + delete wxLog::SetActiveTarget(new wxLogStderr); +#endif + wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ); wxCmdLineParser parser(cmdLineDesc, argc, argv); diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index f36768d150..79d7540fc3 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -98,6 +98,12 @@ int XmlResApp::OnRun() { wxCMD_LINE_NONE } }; +#if wxUSE_GUI + // VS: I need reasonable output to console from wxCmdLineParser + wxLog::SetTimestamp(NULL); + delete wxLog::SetActiveTarget(new wxLogStderr); +#endif + wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ); wxCmdLineParser parser(cmdLineDesc, argc, argv); -- 2.45.2