Commit 0cbdc579 authored by Stas Korobeynikov's avatar Stas Korobeynikov

fix string for old wx

parent 4bb9b631
...@@ -21,7 +21,7 @@ AsyncProcess::AsyncProcess(wxEvtHandler *evtHandler) : wxProcess(), wxThreadHelp ...@@ -21,7 +21,7 @@ AsyncProcess::AsyncProcess(wxEvtHandler *evtHandler) : wxProcess(), wxThreadHelp
void AsyncProcess::start() { void AsyncProcess::start() {
int pid; int pid;
const char* cmd = "nxssh -nx -x -2 -p 2222 -o 'RhostsAuthentication no' -o 'PasswordAuthentication no' -o 'RSAAuthentication no' -o 'RhostsRSAAuthentication no' -o 'PubkeyAuthentication yes' -i /usr/lib64/opennx/share/keys/server.id_dsa.key -B -E nx@192.168.4.58"; const wxString cmd = wxT("/usr/bin/nxssh -nx -x -2 -p 2222 -o 'RhostsAuthentication no' -o 'PasswordAuthentication no' -o 'RSAAuthentication no' -o 'RhostsRSAAuthentication no' -o 'PubkeyAuthentication yes' -i /usr/lib64/opennx/share/keys/server.id_dsa.key -B -E nx@192.168.4.58");
pid = wxExecute(cmd, wxEXEC_ASYNC, this); pid = wxExecute(cmd, wxEXEC_ASYNC, this);
printf("pid: %d\n",pid); printf("pid: %d\n",pid);
Create(); Create();
...@@ -35,7 +35,7 @@ wxThread::ExitCode AsyncProcess::Entry() { ...@@ -35,7 +35,7 @@ wxThread::ExitCode AsyncProcess::Entry() {
printf("%c", c); printf("%c", c);
if(c == '\n') { if(c == '\n') {
wxCommandEvent event(wxEVT_PROCESS_STDOUT, wxID_ANY); wxCommandEvent event(wxEVT_PROCESS_STDOUT, wxID_ANY);
event.SetString("String compleate\n"); event.SetString(_T("String complete\n"));
event.SetClientData(this); event.SetClientData(this);
m_pEvtHandler->AddPendingEvent(event); m_pEvtHandler->AddPendingEvent(event);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment