jajdoo
23rd March 2011, 12:32
I'm trying to run tasm (turbo assembler compiler) using a QProcess, but I'm having problems..
here's the relavent code:
output_win - a QTextEdit
srcTarget_line - a QLineEdit
bool OMGASM::mainWin::compileSrc()
{
QString program = "TC/BIN/tasm.exe";
QStringList arguments;
arguments <<srcTarget_line->text();
QProcess *p = new QProcess();
p->start(program, arguments);
p->waitForStarted();
p->waitForReadyRead();
p->waitForFinished();
output_win->append( p->errorString() );
output_win->append( p->readAllStandardError() );
output_win->append( p->readAll() );
p->terminate();
delete p;
return true;
}
all i get is "unknown error" on my 'output_win'.. (and it did not compile)
here's the relavent code:
output_win - a QTextEdit
srcTarget_line - a QLineEdit
bool OMGASM::mainWin::compileSrc()
{
QString program = "TC/BIN/tasm.exe";
QStringList arguments;
arguments <<srcTarget_line->text();
QProcess *p = new QProcess();
p->start(program, arguments);
p->waitForStarted();
p->waitForReadyRead();
p->waitForFinished();
output_win->append( p->errorString() );
output_win->append( p->readAllStandardError() );
output_win->append( p->readAll() );
p->terminate();
delete p;
return true;
}
all i get is "unknown error" on my 'output_win'.. (and it did not compile)