|
-
May 11th, 1999, 06:52 PM
#1
Problem with CString.Format("\xFF\x00\EA") ; Help....
I'm trying to send a string command in hex notation to a com port. The string is formatted as follow:
CString.Format("\xFF\x00\FA")
The Problem is \x00 = Null in ascii (string terminator) thus only FF was sent. I need the hex 00 to be part of the string command. How do I go about formatting the string so that it would be hex FF 00 FA ? Is there a better way to formatt a string in hex notation to send to serial port?
Thank you much.
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
|