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.