Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-event-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stas Korobeynikov
wx-event-test
Commits
0cbdc579
Commit
0cbdc579
authored
Nov 18, 2016
by
Stas Korobeynikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix string for old wx
parent
4bb9b631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
asyncprocess.cpp
asyncprocess.cpp
+2
-2
No files found.
asyncprocess.cpp
View file @
0cbdc579
...
...
@@ -21,7 +21,7 @@ AsyncProcess::AsyncProcess(wxEvtHandler *evtHandler) : wxProcess(), wxThreadHelp
void
AsyncProcess
::
start
()
{
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
);
printf
(
"pid: %d
\n
"
,
pid
);
Create
();
...
...
@@ -35,7 +35,7 @@ wxThread::ExitCode AsyncProcess::Entry() {
printf
(
"%c"
,
c
);
if
(
c
==
'\n'
)
{
wxCommandEvent
event
(
wxEVT_PROCESS_STDOUT
,
wxID_ANY
);
event
.
SetString
(
"String compleate
\n
"
);
event
.
SetString
(
_T
(
"String complete
\n
"
)
);
event
.
SetClientData
(
this
);
m_pEvtHandler
->
AddPendingEvent
(
event
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment