How can I get an application to write debug text to the Event Log window in the Delphi IDE (Borland Developer Studio 2006)?
How does one change the color of the text
Apart from what has been said (i.e. OutputDebugString
and using DebugView instead of the built-in log viewer), you can change the color of messages in the log view via the Options. The easiest way to get there is by right-clicking in the log pane and selecting "Properties" from the context menu. On the tab that will appear you can set the color to use for "Output Debug Strings" from the "Colors" section. Obviously this will change the color of all messages emitted via OutputDebugString
- it will not allow individual coloring. For that you'd better use DebugView's filters.