entonjackson
18th October 2011, 09:25
Hello!
I've been looking now for hours to find a way how to output the STDOUT/STDERR from a DLL.
I have a Testclass inheriting QObject. I have test cases.
Output works fine, creating an .exe
Output doesn't work of course, creating an .dll
I've been trying to connect the stdout handle to a QFile in the hope, it would write into it, so i can read it after that.
File was always empty (probably STDOUT wasn't generated at all)
I've been trying to connect the stdout handle to a QTextStream in the hope, i could flush() it after QTest::qExec() and read the content of it.
But again there is nothing to read.
So... in the meantime i think there's probably no way to read a .dll's STDOUT because there is none, right?
Help!
I've been looking now for hours to find a way how to output the STDOUT/STDERR from a DLL.
I have a Testclass inheriting QObject. I have test cases.
Output works fine, creating an .exe
Output doesn't work of course, creating an .dll
I've been trying to connect the stdout handle to a QFile in the hope, it would write into it, so i can read it after that.
File was always empty (probably STDOUT wasn't generated at all)
I've been trying to connect the stdout handle to a QTextStream in the hope, i could flush() it after QTest::qExec() and read the content of it.
But again there is nothing to read.
So... in the meantime i think there's probably no way to read a .dll's STDOUT because there is none, right?
Help!