diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 978db2a254..9e0758f642 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -179,10 +179,10 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { wxString msg; - msg.Printf("This is the about dialog of minimal sample.\n" - "Welcome to %s" + msg.Printf( _T("This is the about dialog of minimal sample.\n") + _T("Welcome to %s") #ifdef wxBETA_NUMBER - " (beta %d)!" + _T(" (beta %d)!") #endif // wxBETA_NUMBER , wxVERSION_STRING #ifdef wxBETA_NUMBER diff --git a/src/common/event.cpp b/src/common/event.cpp index 904178bc7b..6a44755477 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -118,7 +118,7 @@ wxCommandEvent::wxCommandEvent(wxEventType commandType, int theId) m_extraLong = 0; m_commandInt = 0; m_id = theId; - m_commandString = (char *) NULL; + m_commandString = (wxChar *) NULL; m_isCommandEvent = TRUE; }