PDA

View Full Version : Qextserial and writeblock



bollibompa
8th April 2011, 15:03
Hi,
I am converting an app from qt3 -->qt4. The code uses Qextserialport and I think I now managed to do all changes except from one:


void pump::sendPump( const char *out)
{
if(port.open()) {
port.writeBlock(out,strlen(out));
port.flush();
port.flush();
port.close();
}
}

I recieve an error for the WriteBlock. Has this been changed in new version of Qextserial and can anyone help me how it should be written
Many thanks in advance!
Thomas

high_flyer
9th April 2011, 22:18
do you use the new QextSerialPort which linkgs against Qt4?

I recieve an error for the WriteBlock.
Which error?