Hi,
Does anyone know a sure way of setting a Byte to -1 ? Ive tried several methods but the problem Im running into is that I cant verify the results to see if its actually 11111111 because vb converts it to 255 anytime i try to access it. Before you say that "Hey VB6 Doesnt support Signed Bytes!" Im aware of that, but i know it can be forced at the bit level. Im writing a parser for the MsgPack protocol and the flag for timestamp message needs to be a byte that is -1 on the wire. The primary method i was using was setting an Integer to &HFFFF and copying LSB to the byte with copymemory.
regards
Lewis
Does anyone know a sure way of setting a Byte to -1 ? Ive tried several methods but the problem Im running into is that I cant verify the results to see if its actually 11111111 because vb converts it to 255 anytime i try to access it. Before you say that "Hey VB6 Doesnt support Signed Bytes!" Im aware of that, but i know it can be forced at the bit level. Im writing a parser for the MsgPack protocol and the flag for timestamp message needs to be a byte that is -1 on the wire. The primary method i was using was setting an Integer to &HFFFF and copying LSB to the byte with copymemory.
regards
Lewis