Afternoon --

I can't seem to find a simple problem I'm having addressed anywhere in the forum or google, so I'm hoping someone can point me in the right direction...I'm sure it's something small...

I am trying to call a simple cmd application that takes 2 parameters, an input file and output file with QProcess -- it looks like it should be a very easy thing to do but I'm getting errors that really don't help me much...if I use "proc->start(...)" the error I get is, "Process failed to start: ", and if I use proc->execute (...), I get "Unknown error"...It might be something in my pathnames, but I need another set of eyes at this point...

From the command line, this is how I call the application and it works perfectly:
C:\Users\Scott\Desktop\Star\Genriser\src\genriser test.input test.output

mainwindow.h
Qt Code:
  1. .
  2. .
  3. .
  4. private:
  5. Ui::MainWindow *ui;
  6. QProcess *genriser_proc;
To copy to clipboard, switch view to plain text mode 

mainwindow.cpp
Qt Code:
  1. QString genriser_dir;
  2. QStringList arguments;
  3.  
  4. genriser_proc = new QProcess;
  5.  
  6. genriser_dir = "C:\\Users\\Scott\\Desktop\\Star\\Genriser\\src";
  7. QDir::setCurrent(genriser_dir);
  8.  
  9. arguments << "test.input";
  10. arguments << "test.output";
  11.  
  12. genriser_proc->start(program, arguments);
To copy to clipboard, switch view to plain text mode 

I have tried not setting a working directory and putting the full pathname of the executable and the files in the string, I've tried the overloaded versions of QProcess::start and execute, but to no avail.


Any ideas? I'm sure it'll be something embarrassing...

scott