X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..1e6d9c20fdb220e4cb9c1ee2a52709b08bb414ba:/samples/exec/exec.cpp diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index fec7e51750..8878122415 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -55,6 +55,7 @@ #endif #include "wx/txtstrm.h" +#include "wx/numdlg.h" #include "wx/process.h" @@ -83,7 +84,7 @@ public: // Define an array of process pointers used by MyFrame class MyPipedProcess; -WX_DEFINE_ARRAY(MyPipedProcess *, MyProcessesArray); +WX_DEFINE_ARRAY_PTR(MyPipedProcess *, MyProcessesArray); // Define a new frame type: this is going to be our main frame class MyFrame : public wxFrame @@ -192,9 +193,9 @@ public: wxProcess *process); protected: - void OnTextEnter(wxCommandEvent& event) { DoSend(); } - void OnBtnSend(wxCommandEvent& event) { DoSend(); } - void OnBtnGet(wxCommandEvent& event) { DoGet(); } + void OnTextEnter(wxCommandEvent& WXUNUSED(event)) { DoSend(); } + void OnBtnSend(wxCommandEvent& WXUNUSED(event)) { DoSend(); } + void OnBtnGet(wxCommandEvent& WXUNUSED(event)) { DoGet(); } void OnClose(wxCloseEvent& event); @@ -202,7 +203,7 @@ protected: void DoSend() { - m_out.WriteString(m_textIn->GetValue() + '\n'); + m_out.WriteString(m_textIn->GetValue() + _T('\n')); m_textIn->Clear(); DoGet(); @@ -746,7 +747,7 @@ void MyFrame::OnExecWithPipe(wxCommandEvent& WXUNUSED(event)) m_cmdLast = cmd; } -void MyFrame::OnPOpen(wxCommandEvent& event) +void MyFrame::OnPOpen(wxCommandEvent& WXUNUSED(event)) { wxString cmd = wxGetTextFromUser(_T("Enter the command to launch: "), DIALOG_TITLE, @@ -778,7 +779,7 @@ void MyFrame::OnPOpen(wxCommandEvent& event) new MyPipeFrame(this, cmd, process); } -void MyFrame::OnFileExec(wxCommandEvent& event) +void MyFrame::OnFileExec(wxCommandEvent& WXUNUSED(event)) { static wxString s_filename; @@ -847,7 +848,7 @@ void MyFrame::OnDDEExec(wxCommandEvent& WXUNUSED(event)) return; wxDDEClient client; - wxConnectionBase *conn = client.MakeConnection("", m_server, m_topic); + wxConnectionBase *conn = client.MakeConnection(_T(""), m_server, m_topic); if ( !conn ) { wxLogError(_T("Failed to connect to the DDE server '%s'."), @@ -873,7 +874,7 @@ void MyFrame::OnDDERequest(wxCommandEvent& WXUNUSED(event)) return; wxDDEClient client; - wxConnectionBase *conn = client.MakeConnection("", m_server, m_topic); + wxConnectionBase *conn = client.MakeConnection(_T(""), m_server, m_topic); if ( !conn ) { wxLogError(_T("Failed to connect to the DDE server '%s'."), @@ -1096,7 +1097,7 @@ void MyPipeFrame::OnClose(wxCloseEvent& event) event.Skip(); } -void MyPipeFrame::OnProcessTerm(wxProcessEvent& event) +void MyPipeFrame::OnProcessTerm(wxProcessEvent& WXUNUSED(event)) { delete m_process; m_process = NULL;