|
-
June 12th, 2009, 09:23 AM
#1
Byte string vs Char string
I'm writing an app that communicates with a piece of hardware through an RS-232 port. I want to use the PORT.ReadExisting() functionality to read all received bytes from the buffer. However, the 'ReadExisting()' function returns a character string (each character being 0-127 in value).
I need to read in values outside of the standard ASCII set upto values of 255. I can use ReadByte to get the values, but there is no 'Get all bytes from bufer' function, and I'm not sure exactly where to start making one.
Anyone have any ideas?
Cheers,
Sam.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|