[Qt-interest] how to output a user defined struct data to datastream?
Vincent Cai
wcai at cypress.com
Wed Oct 12 14:00:44 CEST 2011
Dear all,
How to output a user defined struct data to datastream?
Below code can't pass compiling:
typedef struct
{
quint16 header;
quint8 length;
quint8 counter;
quint8 reserved[4];
} TSA_FRAME_HEADER_STURCT;
TSA_FRAME_HEADER_STURCT headerInfo;
void TSAFrameHeader::writeHeaderString(QFile *file)
{
QDataStream out(file);
out << headerInfo;
}
Thanks,
Vincent.
________________________________
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111012/6c27043f/attachment.html
More information about the Qt-interest-old
mailing list