![]() |
|
Qt C++ signed unsigned mismatch |
Ariesnl
Member #2,902
November 2002
![]() |
Well here's a nasty one (I think) Sending bytes over a line is usually an UNSIGNED matter. I have a device that sends unsigned bytes ( a byte should be unsigned ) over a line using a custom protocol, this cannot be changed ! And I wanted to use Qt to make a nice tool to read it all out. However... Any suggestions ? Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
signed and unsigned bytes are the same. It's only how they are interpreted. Just cast your ubyte stream to a byte stream, and then cast it back once it's received. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|