1. wxStopWatch tests in console

2. some more messages in exec


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-05 02:23:53 +00:00
parent f7bd3a7d8f
commit d31b7b682c
2 changed files with 58 additions and 10 deletions

View File

@@ -310,7 +310,10 @@ void MyFrame::OnSyncExec(wxCommandEvent& WXUNUSED(event))
if ( !cmd )
return;
wxLogStatus(_T("'%s' is running please wait..."), cmd.c_str());
int code = wxExecute(cmd, TRUE /* sync */);
wxLogStatus(_T("Process '%s' terminated with exit code %d."),
cmd.c_str(), code);
m_cmdLast = cmd;
@@ -326,7 +329,8 @@ void MyFrame::OnAsyncExec(wxCommandEvent& WXUNUSED(event))
return;
wxProcess *process = new MyProcess(this, cmd);
if ( !wxExecute(cmd, FALSE /* async */, process) )
long pid = wxExecute(cmd, FALSE /* async */, process);
if ( !pid )
{
wxLogError(_T("Execution of '%s' failed."), cmd.c_str());
@@ -334,6 +338,8 @@ void MyFrame::OnAsyncExec(wxCommandEvent& WXUNUSED(event))
}
else
{
wxLogStatus(_T("Process %ld (%s) launched."), pid, cmd.c_str());
m_cmdLast = cmd;
}
}