Hey Hai,
The qbstdoutstream is actually a routine used to pull data off of the local disk. The qbstdout routine is probably better for most purposes. I suspect you picked the qbstdoutstream routine because it looks simpler to use. In replacement to that, you can do the following:
QbCommand cmd;
cmd.jobids().push(new QbJobId(jobid, subid));
QbLogList logs;
qbstdout(cmd, logs)
for (QB_INT i = 0; i < logs.length(); i++) {
QbLog* log = logs.get(i);
if (log == NULL)
continue;
cout << log->data() << endl;
}