#include "wx/file.h"
#include "wx/textfile.h"
+#ifdef __WXMSW__
+ // for OutputDebugString()
+ #include "wx/msw/private.h"
+#endif // Windows
+
// ----------------------------------------------------------------------------
// global variables
// ----------------------------------------------------------------------------
{
wxString msg;
TimeStamp(&msg);
- msg << szString << T('\n');
+ msg << szString << wxT('\n');
m_pTextCtrl->AppendText(msg);
}
if ( nLines > 25 ) // don't put too many lines in message box
break;
- str << m_aMessages[n - 1] << T("\n");
+ str << m_aMessages[n - 1] << wxT("\n");
}
const wxChar *title;
// debug window anyhow, but do put a timestamp
wxString str;
TimeStamp(&str);
- str << szString << T("\n\r");
+ str << szString << wxT("\n\r");
OutputDebugString(str);
#else
// send them to stderr
- wxFprintf(stderr, T("%s: %s\n"),
- level == wxLOG_Trace ? T("Trace")
- : T("Debug"),
+ wxFprintf(stderr, wxT("%s: %s\n"),
+ level == wxLOG_Trace ? wxT("Trace")
+ : wxT("Debug"),
szString);
fflush(stderr);
#endif
{
// get the file name
// -----------------
- const wxChar *szFileName = wxSaveFileSelector(T("log"), T("txt"), T("log.txt"));
+ const wxChar *szFileName = wxSaveFileSelector(wxT("log"), wxT("txt"), wxT("log.txt"));
if ( szFileName == NULL ) {
// cancelled
return;
wxString msg;
TimeStamp(&msg);
- msg << szString << T('\n');
+ msg << szString << wxT('\n');
pText->AppendText(msg);