I have a situation where the device I am talking to will send Binary 255 but depending on the computer I am on when the character is read the ascii value will show as either -1 or 255
I am trying to determine if this is due to the underlying Windows API or the PB COMM RECV but not sure which, nor why it is this way on some machines and not others.
If memory serves then -1 is the 2s compliment of 255 which is my only lead at the moment
I would hate to have to rewrite a terminal from scratch using pure API (although it is on my "Hit-List" of things to do when I get time (
hhhyaaaa Right??? "When I get TIME!!!")
Anyways, hoping someone out there will know the why this is happening (or some way I could test using code already written???)
I am trying to determine if this is due to the underlying Windows API or the PB COMM RECV but not sure which, nor why it is this way on some machines and not others.
If memory serves then -1 is the 2s compliment of 255 which is my only lead at the moment
I would hate to have to rewrite a terminal from scratch using pure API (although it is on my "Hit-List" of things to do when I get time (

Anyways, hoping someone out there will know the why this is happening (or some way I could test using code already written???)
Comment