From: Václav Slavík Date: Sun, 13 May 2001 22:09:53 +0000 (+0000) Subject: now outputs errors to stderr X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cb0b3950ffe8229e09d7aac46a92b373fc9a4aeb now outputs errors to stderr git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);