#endif
#include "wx/txtstrm.h"
+#include "wx/numdlg.h"
#include "wx/process.h"
// 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
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);
void DoSend()
{
- m_out.WriteString(m_textIn->GetValue() + '\n');
+ m_out.WriteString(m_textIn->GetValue() + _T('\n'));
m_textIn->Clear();
DoGet();
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,
new MyPipeFrame(this, cmd, process);
}
-void MyFrame::OnFileExec(wxCommandEvent& event)
+void MyFrame::OnFileExec(wxCommandEvent& WXUNUSED(event))
{
static wxString s_filename;
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'."),
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'."),
event.Skip();
}
-void MyPipeFrame::OnProcessTerm(wxProcessEvent& event)
+void MyPipeFrame::OnProcessTerm(wxProcessEvent& WXUNUSED(event))
{
delete m_process;
m_process = NULL;