Hello,
I am getting an error from the code below, (2015 Release 2.2) I got it from WFS - Type “BinaryStream” has no member named “ReadShort”
// Now process each of the events that
// we've been given, based on the type of the event
Dim bs as new BinaryStream( records )
for i as Integer = 0 to eventsRead - 1
// Read in a short for the event type
Dim eventType as Integer = bs.ReadShort
Const KEY_EVENT = &h1
Const MOUSE_EVENT = &h2
Const WINDOW_BUFFER_SIZE_EVENT = &h4
// Read another short, which was stupid padding
call bs.ReadShort
How can I fix that?
I used bs.ReadUInt16 instead of bs.ReadShort and I did not get an error, is that the correct fix?
Thanks.
Lennox