|
Could you elaborate on that? The problem is that if I'm supposed to receive 0x01 through the serial port, I need to be able to have it read as part of the string packet. And vice versa - I need a way to to send the hex value 0x01 out -- I cannot change this to sending \01 because the other end is not expecting that. The problem I'm encountering is all in how the character array (LPCSTR or char*, whatever) is set up for the Read function - I can't seem to assign a hex value to it - Visual C++ and the Win32 API seem to want only printable characters transferred, which is a problem for me because I need to send ACKs and NAKs and I need to be able to send null bytes without having them interrupt the string.
|