The the situation is as follows.
I have a CStringList with an un known number of strings stored in it (rollResults). I also have a CEdit control for output (m_rollResults). Each string ends with a '\n' character.
// m_rollResults is type CEdit
// fill out put with various data
// clear anything in the in the edit box
// place all the strings in output, into m_rollResults
for(POSITION pos = output.GetHeadPosition(); pos != NULL; )
Everything seems to work except all the output is placed on one line. I do not want to use word wrap or anything like that. I want each string to be placed on a new line in the CEdit control. I have tryed placing a '\n', '\r', and '\0' char at the end of each line but all it did was print an unknow char.
I know I am doing things in a round about way. I will up the point if anyone can show me the proper way of doing this.