PDA

View Full Version : Can QByteArray takes place of BYTE?



hiuao
5th April 2007, 10:59
I have to change some codes from MFC into Qt,can I use QByteArray to take place of BYTE?
Thank you very much!:)

fullmetalcoder
5th April 2007, 11:05
I have to change some codes from MFC into Qt,can I use QByteArray to take place of BYTE?
Thank you very much!:)
AFAIK QByteArray is nothing like a BYTE but rather a table of BYTEs... If MFC's BYTEs are real bytes then you can use char or unsigned char and maybe Qt has typedefs like qint8, quint8...

wysota
5th April 2007, 11:49
Byte is usually an "unsigned char".