#include "wx/app.h"
#endif
+#include "wx/log.h"
#include "wx/msw/private.h"
#include <windows.h>
#ifdef __GNUWIN32__
#include <sys/unistd.h>
#include <sys/stat.h>
-#ifndef __MINGW32__
-#include <std.h>
-#endif
-
#endif
#ifdef __WIN32__
if (((long)result) <= 32) {
free(cl);
+
+ wxLogSysError(_("Can't execute command '%s'"), command.c_str());
return 0;
}
return(instanceID);
#endif
}
+
+long wxExecute(char **argv, bool sync, wxProcess *handler)
+{
+ wxString command = "";
+
+ while (*argv != NULL) {
+ command += *argv;
+ command += ' ';
+ argv++;
+ }
+ command.RemoveLast();
+ return wxExecute(command, sync, handler);
+}