I have written a terminal interface program for windows. Everything works fine except when the program takes a character in from the serial port that is one of the special characters. ie. Backspace, Carriage Return, or anything that deletes old text. In these instances the richedit control does not perform the operation (it does not do the backspace) instead it spits out the character codes that make up the backspace. Does anyone know how to insert these special characters into the rich edit control???
Code I am using to instert into control:
void PrintIncomming(Passin SerialStream_in)
LPSTR SerialInitial = NULL;
SetStreamType(StreamType_Buffer); //set stream as buffer
SerialStream_in.streamedit.pfnCallback = EditStreamCallback; //set callback
SerialStream_in.streamedit.dwCookie = (unsigned long)&SerialText; //pass address of buffer
thanks for any advice or input you can provide