Sending uncoded zero (ASCI) data on RS232
I want to send uncoded (ASCII) numbers over the RS232 interface. I'm having problem with sending the number 0. Since this termitaes the string that I'm trying to send.
int zero = 0;
char h = 'h';
char e = 'e';
Meddelande.Format("%c%c%c", h, zero, e);
MeddelandeStorlek = Meddelande.GetLength();
length = tmpStr.GetLength();
CheckWrite = WriteFile(Port, (LPCSTR)Meddelande,
MeddelandeStorlek, Bitskickade, NULL);
Since zero will terminate the string e is never sent.
How do I get around the termination function of NUL?