#include "wx/setup.h"
#include "wx/utils.h"
#include "wx/app.h"
+#include "wx/intl.h"
#endif
+#include "wx/log.h"
#include "wx/msw/private.h"
#include <windows.h>
#include <ctype.h>
-#ifndef __GNUWIN32__
+#if !defined(__GNUWIN32__) && !defined(__SALFORDC__)
#include <direct.h>
+#ifndef __MWERKS__
#include <dos.h>
#endif
+#endif
#ifdef __GNUWIN32__
+#ifndef __TWIN32__
#include <sys/unistd.h>
#include <sys/stat.h>
-#ifndef __MINGW32__
-#include <std.h>
#endif
-
#endif
#ifdef __WIN32__
if (command == "")
return 0;
-#ifdef __WIN32__
+#if defined(__WIN32__) && !defined(__TWIN32__)
char * cl;
char * argp;
int clen;
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);
+}