git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52773
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// If flags contain wxEXEC_SYNC, return -1 on failure and the exit code of the
// process if everything was ok. Otherwise (i.e. if wxEXEC_ASYNC), return 0 on
// failure and the PID of the launched process if ok.
// If flags contain wxEXEC_SYNC, return -1 on failure and the exit code of the
// process if everything was ok. Otherwise (i.e. if wxEXEC_ASYNC), return 0 on
// failure and the PID of the launched process if ok.
-WXDLLIMPEXP_BASE long wxExecute(wchar_t **argv,
+WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
WXDLLIMPEXP_BASE long wxExecute(char **argv,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
WXDLLIMPEXP_BASE long wxExecute(char **argv,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
-WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
+#if wxUSE_UNICODE
+WXDLLIMPEXP_BASE long wxExecute(wchar_t **argv,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL);
// execute the command capturing its output into an array line by line, this is
// always synchronous
// execute the command capturing its output into an array line by line, this is
// always synchronous
return wxExecuteImpl(argv, flags, handler);
}
return wxExecuteImpl(argv, flags, handler);
}
long wxExecute(wchar_t **argv, int flags, wxProcess *handler)
{
return wxExecuteImpl(argv, flags, handler);
}
long wxExecute(wchar_t **argv, int flags, wxProcess *handler)
{
return wxExecuteImpl(argv, flags, handler);
}
+
+#endif // wxUSE_UNICODE
ArgsArray(wchar_t **wargv)
{
int argc = 0;
ArgsArray(wchar_t **wargv)
{
int argc = 0;
m_argv[i] = wxSafeConvertWX2MB(wargv[i]).release();
}
}
m_argv[i] = wxSafeConvertWX2MB(wargv[i]).release();
}
}
return wxExecute(argv, flags, process);
}
return wxExecute(argv, flags, process);
}
long wxExecute(wchar_t **wargv, int flags, wxProcess *process)
{
ArgsArray argv(wargv);
long wxExecute(wchar_t **wargv, int flags, wxProcess *process)
{
ArgsArray argv(wargv);
return wxExecute(argv, flags, process);
}
return wxExecute(argv, flags, process);
}
+#endif // wxUSE_UNICODE
+
// wxExecute: the real worker function
long wxExecute(char **argv, int flags, wxProcess *process)
{
// wxExecute: the real worker function
long wxExecute(char **argv, int flags, wxProcess *process)
{