Thanks for that. I tired it and the compiling can be done without error.

However... here comes the bad news...

When I pass in a string with the 'TM' (trademark) symbol to the RichEdit control, it does not get displayed as 'TM'. Instead, it is displayed as | (the pipe symbol). The same applies to the copyright symbol.

How can I overcome this problem of displaying these symbols as they are, instead of the pipe symbol?